note 23808 added to function.array-key-exists
| From: | crs at centrum dot cz | Date: | Mon, 29 Jul 2002 10:02:54 +0000 |
| Subject: | note 23808 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33863@lists.php.net to get a copy of this message | ||
array_key_exists($key,$array) /*in PHP v.<4.1.0*/ <=> in_array(array_keys($array),$key)
i think this is more precise than array_search and tinier than list()=each()
;-)
--
http://www.php.net/manual/en/function.array-key-exists.php
http://master.php.net/manage/user-notes.php?action=edit+23808
http://master.php.net/manage/user-notes.php?action=delete+23808
http://master.php.net/manage/user-notes.php?action=reject+23808