MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following PHP code ? <?php $i = ""; while ($i) { print "hi"; } while($i < 8) $i++; print "hello"; ?> |
| A. | Hi is printed 8 times, hello 7 times and then hi 2 times |
| B. | Hi is printed 10 times, hello 7 times |
| C. | Hi is printed once, hello 7 times |
| D. | Hi is printed once, hello 7 times and then hi 2 times |
| Answer» E. | |