note 75609 added to function.in-array
| From: | Abro at osu1 dot php dot net | Date: | Thu, 07 Jun 2007 21:40:40 +0000 |
| Subject: | note 75609 added to function.in-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127280@lists.php.net to get a copy of this message | ||
RE: In trying to emulate a case insensitive in_array()....
why not :
foreach the parameter vals, strtolower them
and after that have a small and simple in_array functioncall ... ?
should be mouch smarter ;)
----
Server IP: 217.160.72.57
Probable Submitter: 195.4.221.210
----
Manual Page -- http://www.php.net/manual/en/function.in-array.php
Edit -- https://master.php.net/note/edit/75609
Del: integrated -- https://master.php.net/note/delete/75609/integrated
Del: useless -- https://master.php.net/note/delete/75609/useless
Del: bad code -- https://master.php.net/note/delete/75609/bad+code
Del: spam -- https://master.php.net/note/delete/75609/spam
Del: non-english -- https://master.php.net/note/delete/75609/non-english
Del: in docs -- https://master.php.net/note/delete/75609/in+docs
Del: other reasons-- https://master.php.net/note/delete/75609
Reject -- https://master.php.net/note/reject/75609
Search -- https://master.php.net/manage/user-notes.php