Á Ánh Dương New member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php for(++$i; ++$i; ++$i) { print $i; if ($i == 4) break; } ?> A. 24 B. 134 C. 1234 D. 1
What will be the output of the following PHP code? Code: <?php for(++$i; ++$i; ++$i) { print $i; if ($i == 4) break; } ?> A. 24 B. 134 C. 1234 D. 1
N Nguyễn Hào New member Sep 20, 2021 #2 Answer: a Explanation: The order of execution is initialization, check, increment/decrement, check, increment/decrement, check, increment/decrement….so on. Upvote 0 Downvote
Answer: a Explanation: The order of execution is initialization, check, increment/decrement, check, increment/decrement, check, increment/decrement….so on.