ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.