Practice mode PHP

What is the output of the PHP statement echo intdiv(17, 5);?

Correct answer D. 3

Explanation

intdiv() performs integer division and returns only the whole-number quotient. 17 divided by 5 is 3.4, so intdiv(17, 5) returns 3.

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.