Sail E0 Webinar
Question
What will be the output of the following PHP code ?$i = "";while ($i) {print "hi";}while($i < 8)$i++;print "hello";
Options:
A .  Hi is printed 8 times, hello 7 times and then hi 2 times
B .  Hi is printed once, hello 7 times and then hi 2 times
C .  Hi is printed once, hello 7 times
D .  Hi is printed 10 times, hello 7 times
Answer: Option B

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers