note 10638 added to sizeof
| From: | infong at darkflyer dot de | Date: | Sun, 14 Jan 2001 21:33:12 +0000 |
| Subject: | note 10638 added to sizeof | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9789@lists.php.net to get a copy of this message | ||
Hi,
if i have a array who look:
$HOPPER=("Number"=>"111111");
and i would like to show if any key exists, i write this:
if(key($HOPPER) =="")
echo "You dont have....blablup";
you can look if a key exits or the array is array=()
http://www.php.net/manual/en/function.sizeof.php