note 32617 added to function.sizeof

From: Date: Tue, 03 Jun 2003 07:34:13 +0000
Subject: note 32617 added to function.sizeof
Groups: php.notes 
Request: Send a blank email to php-notes+get-49599@lists.php.net to get a copy of this message
I hate to point out the obvious, but it is a real pain to check for an empty array, if count and sizeof return 1 for any variable (array or not)..... ??? Is there an isEmpty, or a "proper" length function (i.e one that operates like array length functions in every other language I have ever used.)? Thanks in advance. ---- Manual Page -- http://www.php.net/manual/en/function.sizeof.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32617 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32617&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32617&report=yes

« previous php.notes (#49599) next »