note 34358 added to function.empty
| From: | "H�kon" at rack1 dot php dot net | Date: | Thu, 24 Jul 2003 18:58:44 +0000 |
| Subject: | note 34358 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52584@lists.php.net to get a copy of this message | ||
If you want to check if your array is empty, you can't use the function empty(). You have to
use this method:
if(count($array) == 0)
{
echo 'The array 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+34358
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34358&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34358&report=yes