note 61316 deleted from function.array-key-exists by nlopess

From: Date: Tue, 25 Apr 2006 21:17:32 +0000
Subject: note 61316 deleted from function.array-key-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109700@lists.php.net to get a copy of this message
Note Submitter: alex aT pilgrimstudio d0t com ---- I guess is case-insensetive 'array_key_exists' version might be usefull for somebody. (have no idea whether it million times slower then isset() or ===) :) function array_key_exists_cin($key, $ar) { $ukey = strtoupper($key); foreach ($ar as $ckey=>$val) { if($ukey == strtoupper($ckey)) return TRUE; } return FALSE; }

« previous php.notes (#109700) next »