note 37543 added to function.empty
| From: | phpatopaqodotcom at rn2 dot php dot net | Date: | Wed, 19 Nov 2003 10:56:42 +0000 |
| Subject: | note 37543 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60614@lists.php.net to get a copy of this message | ||
I feel there is an error in the description: empty() returns FALSE if varhas a non-empty or non-zero
value. In otherwords, "",0, "0", NULL, FALSE, array(), var $var;, and objects
with empty properties, are all considered empty. TRUE is returned if varis empty.
I think what was meant, was that "",0, "0", NULL, FALSE, array(), var $var;, and
objects with empty properties, are all considered NON-empty.
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37543
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37543&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37543&report=yes
Search -- http://master.php.net/manage/user-notes.php