Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$x = 10;
$y = 4;
$z = 3;
echo ($x % ($y) + $z);
?>
Answer : Option A
Explanation :
The inner most bracket is evaluated first, since it covers only variable y it is as good as not using brackets.
Be The First To Comment