note 97624 added to function.is-array
| From: | AliSatter at osu1 dot php dot net | Date: | Wed, 28 Apr 2010 23:42:35 +0000 |
| Subject: | note 97624 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168769@lists.php.net to get a copy of this message | ||
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))));
}
----
Server IP: 69.147.83.197
Probable Submitter: 209.131.48.66
----
Manual Page -- http://www.php.net/manual/en/function.is-array.php
Edit -- https://master.php.net/note/edit/97624
Del: integrated -- https://master.php.net/note/delete/97624/integrated
Del: useless -- https://master.php.net/note/delete/97624/useless
Del: bad code -- https://master.php.net/note/delete/97624/bad+code
Del: spam -- https://master.php.net/note/delete/97624/spam
Del: non-english -- https://master.php.net/note/delete/97624/non-english
Del: in docs -- https://master.php.net/note/delete/97624/in+docs
Del: other reasons-- https://master.php.net/note/delete/97624
Reject -- https://master.php.net/note/reject/97624
Search -- https://master.php.net/manage/user-notes.php