note 24722 added to function.is-array
| From: | yzhuNospam at ouDOTedu dot php dot net | Date: | Tue, 27 Aug 2002 04:14:32 +0000 |
| Subject: | note 24722 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35699@lists.php.net to get a copy of this message | ||
oooops.
In the above code example:
if (is_array($as_ar[1])){
echo "The second element is an array.";
}
should be:
$key = array_keys ($as_ar);
if (is_array($as_ar[$key[1]])){
echo "The second element is an array.";
}
--
http://www.php.net/manual/en/function.is-array.php
http://master.php.net/manage/user-notes.php?action=edit+24722
http://master.php.net/manage/user-notes.php?action=delete+24722
http://master.php.net/manage/user-notes.php?action=reject+24722