note 104033 added to function.array-key-exists
| From: | manhon824 at gmail dot com | Date: | Wed, 18 May 2011 16:29:54 +0000 |
| Subject: | note 104033 added to function.array-key-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179857@lists.php.net to get a copy of this message | ||
I took hours for me to debug, and I finally recognized that,
You have to reset the $array before using array_key_exists
reset($array);
array_key_exists($needle,$array);
Or you will get no reply.
----
Server IP: 69.147.83.197
Probable Submitter: 119.247.91.204
----
Manual Page -- http://www.php.net/manual/en/function.array-key-exists.php
Edit -- https://master.php.net/note/edit/104033
Del: integrated -- https://master.php.net/note/delete/104033/integrated
Del: useless -- https://master.php.net/note/delete/104033/useless
Del: bad code -- https://master.php.net/note/delete/104033/bad+code
Del: spam -- https://master.php.net/note/delete/104033/spam
Del: non-english -- https://master.php.net/note/delete/104033/non-english
Del: in docs -- https://master.php.net/note/delete/104033/in+docs
Del: other reasons-- https://master.php.net/note/delete/104033
Reject -- https://master.php.net/note/reject/104033
Search -- https://master.php.net/manage/user-notes.php