+ 1

What is the output of this code?

$a = 10; $b = 11; $c = $a%$b; echo $c;

31st Aug 2020, 12:45 AM
Burhan Uddin
Burhan Uddin - avatar
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
31st Aug 2020, 12:49 AM
Arsenic
Arsenic - avatar
+ 1
You should run this question on PHP playground .
31st Aug 2020, 12:53 AM
Sâñtôsh
Sâñtôsh - avatar
+ 1
% is modulo operator return remainder of a division 10/11 gives you remainder 10.
31st Aug 2020, 2:13 AM
Divya Mohan
Divya Mohan - avatar