note 79745 added to function.in-array
| From: | cjunge at author-it dot com | Date: | Tue, 11 Dec 2007 04:56:34 +0000 |
| Subject: | note 79745 added to function.in-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133353@lists.php.net to get a copy of this message | ||
I think it should be noted that in_array will NOT work correctly if $needle is an object.
You will get an E_WARNING with the message: Wrong datatype for first argument.
----
Server IP: 202.89.58.1
Probable Submitter: 60.234.58.162
----
Manual Page -- http://www.php.net/manual/en/function.in-array.php
Edit -- https://master.php.net/note/edit/79745
Del: integrated -- https://master.php.net/note/delete/79745/integrated
Del: useless -- https://master.php.net/note/delete/79745/useless
Del: bad code -- https://master.php.net/note/delete/79745/bad+code
Del: spam -- https://master.php.net/note/delete/79745/spam
Del: non-english -- https://master.php.net/note/delete/79745/non-english
Del: in docs -- https://master.php.net/note/delete/79745/in+docs
Del: other reasons-- https://master.php.net/note/delete/79745
Reject -- https://master.php.net/note/reject/79745
Search -- https://master.php.net/manage/user-notes.php