What is the result of following code?

<?php
if (-1) print "True";
else print "False";
?>
Explanation
-1 is considered TRUE, like any other non-zero (whether negative or positive) number!

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з PHP
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести