What is the output of the PHP statement echo 10 % 3;?
Correct answer C. 1
Explanation
The % operator returns the remainder of integer division. 10 divided by 3 is 3 with a remainder of 1, so the output is 1.
Answer checked How we write and check questions
Discussion