note 88844 deleted from function.in-array by danbrown
| From: | danbrown@php.net | Date: | Mon, 08 Jun 2009 21:37:34 +0000 |
| Subject: | note 88844 deleted from function.in-array by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156488@lists.php.net to get a copy of this message | ||
Note Submitter: Anton Bessonov
----
@soxred93 at gmail dot com
This maybe faster:
<?php
function in_arrayi( $needle, $haystack ) {
foreach( $haystack as $value )
if( strtolower( $value ) == strtolower( $needle ) )
return true;
return false;
}
?>