note 34427 added to function.empty
| From: | Me at rack1 dot php dot net | Date: | Sat, 26 Jul 2003 22:51:35 +0000 |
| Subject: | note 34427 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52723@lists.php.net to get a copy of this message | ||
There is a mistake in the description of this 'function':
empty() returns FALSE if var has 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 var is not empty
The last sentence should read:
TRUE is returned if var is empty
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34427
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34427&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34427&report=yes