?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 3.3;
$y = 2;
echo $x % $y;
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login