note 98045 deleted from function.is-array by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: Anonymous 

----

Let me suggest an elegant implementation of is_assoc() func:

<?php

function is_assoc(array $array) {
    return array_values($array) === $array;
}

?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.