+ 1
What is the output of this code?
$a = 10; $b = 11; $c = $a%$b; echo $c;
3 Answers
+ 4
10%11 = 10
Also, you can always try using code playground for these kind of output queries 👇
https://code.sololearn.com/w4cqRiF2Rern/?ref=app
+ 1
You should run this question on PHP playground .
+ 1
% is modulo operator return remainder of a division
10/11 gives you remainder 10.