note 20786 deleted from function.array-key-exists by philip

From: Date: Fri, 06 Dec 2002 17:22:23 +0000
Subject: note 20786 deleted from function.array-key-exists by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40436@lists.php.net to get a copy of this message
This workaround seems to do the trick: if (phpversion() < '4.1') eval(" function array_key_exists($key, $arr) { foreach (array_keys($arr) as $k) if ($k == $key) return true; return false; } ");

« previous php.notes (#40436) next »