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
Зарегистрируйся сейчас
или Подпишись на будущие тесты