note 24722 rejected from function.is-array by victor
| From: | victor@php.net | Date: | Tue, 27 Aug 2002 06:37:55 +0000 |
| Subject: | note 24722 rejected from function.is-array by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35704@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.";
}