N Ngọc Tú Member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $a = 10; $b = 10; if ($a = 5) $b--; print $a;print $b--; ?> A. 58 B. 59 C. 109 D. 108
What will be the output of the following PHP code? Code: <?php $a = 10; $b = 10; if ($a = 5) $b--; print $a;print $b--; ?> A. 58 B. 59 C. 109 D. 108
V Viết Mạnh Member Sep 20, 2021 #2 Answer: b Explanation: a is set to 5 in the if condition and b is post decremented in the print statement. Upvote 0 Downvote
Answer: b Explanation: a is set to 5 in the if condition and b is post decremented in the print statement.