H Huyền Thu New member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $i = 0 while ($i != 3) { print "hi"; $i++; } ?> A. hi hi B. hi hi hi C. hi hi hi hi D. no output
What will be the output of the following PHP code? Code: <?php $i = 0 while ($i != 3) { print "hi"; $i++; } ?> A. hi hi B. hi hi hi C. hi hi hi hi D. no output
N Ngô Quốc Huy New member Sep 20, 2021 #2 Answer: b Explanation: The check happens before the increment, thus it prints until i = 3. Upvote 0 Downvote