note 70203 added to function.array-unique

From: Date: Fri, 06 Oct 2006 16:31:09 +0000
Subject: note 70203 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-118133@lists.php.net to get a copy of this message
The documentation fails to say that array_unique() should not be expected to work on arrays of objects. Furthermore, the behavior of array_unique on an array of objects is different from php4 to php5. As far as I can tell, using array_unique($array_of_objects) will return only the first object of each type in php4. But using array_unique($array_of_objects) in php5 will return the original array. (correct me if I am wrong on any of this) ---- Server IP: 216.194.113.175 Probable Submitter: 71.130.66.66 ---- Manual Page -- http://www.php.net/manual/en/function.array-unique.php Edit -- https://master.php.net/note/edit/70203 Del: integrated -- https://master.php.net/note/delete/70203/integrated Del: useless -- https://master.php.net/note/delete/70203/useless Del: bad code -- https://master.php.net/note/delete/70203/bad+code Del: spam -- https://master.php.net/note/delete/70203/spam Del: non-english -- https://master.php.net/note/delete/70203/non-english Del: in docs -- https://master.php.net/note/delete/70203/in+docs Del: other reasons-- https://master.php.net/note/delete/70203 Reject -- https://master.php.net/note/reject/70203 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118133) next »