What is the result of execution following code?

<?php
$a = 500;
$b = 200;

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

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Продолжайте изучать
тесты по PHP
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты