note 97624 deleted from function.is-array by danbrown
| From: | danbrown@php.net | Date: | Wed, 28 Apr 2010 23:43:06 +0000 |
| Subject: | note 97624 deleted from function.is-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168770@lists.php.net to get a copy of this message | ||
Note Submitter: Ali Satter
----
In the previous example, why do you have array_keys of array_keys of $array?
isn't is_assoc and is_assoc2 functionally the same?
function is_assoc($a) {
return (is_array($a) && 0 !== count(array_diff_key($a, array_keys(array_keys($a)))));
}
function is_assoc2($a) {
return (is_array($a) && 0 !== count(array_diff_key($a, array_keys($a))));
}