Đ Đức Linh New member Sep 20, 2021 #1 What will be the output of the following PHP code? Code: <?php $x = 4; $y = -3; $z = 11; echo 4 + $y * $z / $x; ?> A. 4.25 B. 3.25 C. -3.25 D. -4.25
What will be the output of the following PHP code? Code: <?php $x = 4; $y = -3; $z = 11; echo 4 + $y * $z / $x; ?> A. 4.25 B. 3.25 C. -3.25 D. -4.25
H Hạnh Nguyễn Member Sep 20, 2021 #2 Answer: d Explanation: First the * is evaluated then / followed by + therefore we can rewrite this expression as 4 +((- 3 * 11) / 4) which results in -4.25. Upvote 0 Downvote
Answer: d Explanation: First the * is evaluated then / followed by + therefore we can rewrite this expression as 4 +((- 3 * 11) / 4) which results in -4.25.