A

Admin • 828.03K Points
Coach

Q. What will be the output of the following code?
<?php
echo 10 % 3;
?>

Code:
echo 10 % 3;
  • (A) 1
  • (B) 3
  • (C) 0
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
The % operator gives the remainder of division. 10 divided by 3 leaves remainder 1.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.