?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 3.5;
$y = 2;
$z = 2;
echo $x / $y / $z;
?>
<?php
$x = 3.5;
$y = 2;
$z = 2;
echo $x / $y / $z;
?>
Answer & Solution
Correct Answer:
Option
B
First $x / $y is evaluated then this is divided by $z therefore we get 0.875.
Join the Discussion
Login to post a comment or share your explanation.
Login