note 96724 deleted from function.is-array by tularis
| From: | tularis@php.net | Date: | Sun, 09 Oct 2011 09:30:22 +0000 |
| Subject: | note 96724 deleted from function.is-array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183747@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
<?php
function is_assoc($array) {
return (is_array($array) && (0 !== count(array_diff_key($array,
array_keys(array_keys($array)))) || count($array)==0));
}
?>
because empty array is assoc. too