note 21162 added to function.empty
| From: | vimal at uta dot edu | Date: | Wed, 01 May 2002 15:02:42 +0000 |
| Subject: | note 21162 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30050@lists.php.net to get a copy of this message | ||
Basically:
The following values are considered FALSE:
the boolean FALSE
the integer 0 (zero)
the float 0.0 (zero)
the empty string, and the string "0"
an array with zero elements
an object with zero elements
the special value NULL
Every other value is considered TRUE (including any resource).
--
http://www.php.net/manual/en/function.empty.php
http://master.php.net/manage/user-notes.php?action=edit+21162
http://master.php.net/manage/user-notes.php?action=delete+21162
http://master.php.net/manage/user-notes.php?action=reject+21162