note 28262 modified in function.return by jmcastagnetto

From: Date: Wed, 08 Jan 2003 00:35:35 +0000
Subject: note 28262 modified in function.return by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41805@lists.php.net to get a copy of this message
[Editor's note: The contributor make the incorrect assumption that the string "FALSE" was the same as the boolean FALSE. This should've been clear from the discussion on boolean variables in the manual.] return "FALSE"; is evaluated by if (somefunction() == TRUE) as true, so if your making a function that returns true or false, remember not to put "" around your return text. --was-- return "FALSE"; is evaluated by if (somefunction() == TRUE) as true, so if your making a function that returns true or false, remember not to put "" around your return text. http://www.php.net/manual/en/function.return.php

« previous php.notes (#41805) next »