Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/migration.booleval.html
Дата изменения: Sun Feb 3 22:59:11 2002
Дата индексирования: Mon Oct 1 21:24:01 2012
Кодировка:
Short-circuited boolean evaluation

Short-circuited boolean evaluation

In PHP 3.0 boolean evaluation is short-circuited. This means that in an expression like (1 || test_me()), the function test_me() would not be executed since nothing can change the result of the expression after the 1.

This is a minor compatibility issue, but may cause unexpected side-effects.