Q. What will be the output of the following code?
<?php
echo 10 % 3;
?>
Code:
<?php
echo 10 % 3;
?>
echo 10 % 3;
β
Correct Answer: (A)
1
Explanation: The % operator gives the remainder of division. 10 divided by 3 leaves remainder 1.