note 61175 deleted from function.is-array by tularis
| From: | tularis@php.net | Date: | Sun, 09 Oct 2011 09:24:18 +0000 |
| Subject: | note 61175 deleted from function.is-array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183736@lists.php.net to get a copy of this message | ||
Note Submitter: junkpost at list dot ru
----
There is another example of check to associative array. (See below early versions.)
<?php
funciton is_assoc_array($var) {
return is_array($var) && !empty($var) && !preg_match('/^\d+$/',
implode('', array_keys($var)));
}
?>