note 98807 deleted from language.types.boolean by googleguy

From: Date: Sat, 19 Jan 2013 03:47:31 +0000
Subject: note 98807 deleted from language.types.boolean by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193250@lists.php.net to get a copy of this message
Note Submitter: mobil dot boty at no dot spam dot gmail dot com ---- <?php function test() { return TRUE; } $var = test(); // FASE instead of FALSE if ($var == FASE) { echo 'function returned FALSE'; } else { echo 'function returned TRUE'; } // will output : function returned FALSE ?> Just spent 10 mins trying to figure out why a function returned false when it didn't, so check your typing or use === instead of ==

« previous php.notes (#193250) next »