ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$x = 3.3;
$y = 2;
echo $x % $y;
?>

Answer & Solution
Correct Answer: Option B
% is the modulo operator. Unlike in C we can use it get reminder or floating point numbers in PHP.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.