note 100504 added to function.array-search
| From: | adrienDOTgiboire_AT_gmailDOTcom at osu1 dot php dot net | Date: | Wed, 20 Oct 2010 10:43:59 +0000 |
| Subject: | note 100504 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173301@lists.php.net to get a copy of this message | ||
An array_search for insensitive case simpler than the one posted previously by Camden
(http://fr2.php.net/manual/fr/function.array-search.php#96533) :
public function array_searchi_multiple($needle, $haystack)
{
return array_search(strtolower($needle), array_map('strtolower', $haystack));
}
----
Server IP: 195.221.21.36
Probable Submitter: 88.165.255.66
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- https://master.php.net/note/edit/100504
Del: integrated -- https://master.php.net/note/delete/100504/integrated
Del: useless -- https://master.php.net/note/delete/100504/useless
Del: bad code -- https://master.php.net/note/delete/100504/bad+code
Del: spam -- https://master.php.net/note/delete/100504/spam
Del: non-english -- https://master.php.net/note/delete/100504/non-english
Del: in docs -- https://master.php.net/note/delete/100504/in+docs
Del: other reasons-- https://master.php.net/note/delete/100504
Reject -- https://master.php.net/note/reject/100504
Search -- https://master.php.net/manage/user-notes.php