note 72424 added to function.array-search

From: Date: Thu, 18 Jan 2007 10:34:49 +0000
Subject: note 72424 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-121878@lists.php.net to get a copy of this message
Please note that, in PHP5, if you search for an object in an array using the array_search() function, PHP will return the first object whose properties match, not the same class and instance as your needle. In other words, the object comparison is of type '==', not '===' (see the 'Comparing objects' page). ---- Server IP: 217.174.196.197 Probable Submitter: 81.255.174.7 (proxied: 192.8.2.154, 192.168.4.62) ---- Manual Page -- http://www.php.net/manual/en/function.array-search.php Edit -- https://master.php.net/note/edit/72424 Del: integrated -- https://master.php.net/note/delete/72424/integrated Del: useless -- https://master.php.net/note/delete/72424/useless Del: bad code -- https://master.php.net/note/delete/72424/bad+code Del: spam -- https://master.php.net/note/delete/72424/spam Del: non-english -- https://master.php.net/note/delete/72424/non-english Del: in docs -- https://master.php.net/note/delete/72424/in+docs Del: other reasons-- https://master.php.net/note/delete/72424 Reject -- https://master.php.net/note/reject/72424 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121878) next »