Logo

What will be the output of the following PHP code ? <?php $a = 10; $b = 5; echo $a%$b; ?> A) 0 B) 1 C) 2 D) 5

Class 12 Computer Science · 2083 · Solved Question with Answer

What will be the output of the following PHP code ?
<?php $a = 10; $b = 5;
echo $a%$b; ?>
A) 0                            B) 1                            C) 2                            D) 5

Solution

Please login to view the answer.