Practice mode PHP

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.