note 108926 deleted from function.is-array by danbrown
| From: | danbrown@php.net | Date: | Wed, 06 Jun 2012 17:55:15 +0000 |
| Subject: | note 108926 deleted from function.is-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188432@lists.php.net to get a copy of this message | ||
Note Submitter: michael dot fielding at hawkip dot com
----
magnetix's method doesn't work for this case:
is_assoc( array(0=>'x', 2=>'y') ); // returns false
This is because it doesn't check that the keys are contiguous or even monotonic, only than
they're non-numeric (i.e. string).