note 98045 deleted from function.is-array by danbrown
| From: | danbrown@php.net | Date: | Sat, 22 May 2010 23:49:17 +0000 |
| Subject: | note 98045 deleted from function.is-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169523@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Let me suggest an elegant implementation of is_assoc() func:
<?php
function is_assoc(array $array) {
return array_values($array) === $array;
}
?>