RE: [PHP-WIN] Who to check "false" ?
| From: | Asendorf, John | Date: | Tue, 02 Jan 2001 20:09:14 +0000 |
| Subject: | RE: [PHP-WIN] Who to check "false" ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4738@lists.php.net to get a copy of this message | ||
you can always go for
if ( !$foo ) { }
that will return if: $foo = "0"; $foo = false; $foo = ""; or if
$foo is not defined
but it won't return if $foo = "false";
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
The benefit to the government of replacing all $1 Federal Reserve notes with
$1 coins would be $522.2 million per year, according to estimates of the
General Accouting Office released on April 7, 2000.
> -----Original Message-----
> From: barter [mailto:barter@barter-bb.com]
> Sent: Sunday, December 31, 2000 6:04 AM
> To: list
> Subject: [PHP-WIN] Who to check "false" ?
>
>
> I could not find any documentation about simple checking
> for false (or true).
>
> what are the best ways for that ?
>
> Hezy
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>