note 101869 modified in function.array-search by danbrown
| From: | danbrown@php.net | Date: | Fri, 14 Jan 2011 22:02:17 +0000 |
| Subject: | note 101869 modified in function.array-search by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175770@lists.php.net to get a copy of this message | ||
for searching case insensitive better this:
<?php
array_search(strtolower($element),array_map('strtolower',$array));
?>
--was--
for searching case insensitive better this:
return array_search(strtolower($element),array_map('strtolower',$array));
http://php.net/manual/en/function.array-search.php