What is the result of execution following code?

$a = 500;
$b = 200;

echo $a % 2 * $b;
Arithmetic operators as * or % has the same priority. Remainder of 500 divided by 2 is 0.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
PHP quizzes
Sign Up Now
or Subscribe for future quizzes