note 112966 added to function.array-unique

From: Date: Tue, 13 Aug 2013 10:03:31 +0000
Subject: note 112966 added to function.array-unique
Groups: php.notes 
Request: Send a blank email to php-notes+get-195947@lists.php.net to get a copy of this message
Warning: array_unique($array, SORT_REGULAR) will use the "==" comparison, not the strict comparison ("==="). So if you want to remove duplicates inside an array of objects, beware that it will compare each object properties, not compare object identity (instance). ---- Server IP: 195.221.21.36 Probable Submitter: 109.213.224.12 ---- Manual Page -- http://php.net/manual/en/function.array-unique.php Edit -- https://master.php.net/note/edit/112966 Del: integrated -- https://master.php.net/note/delete/112966/integrated Del: useless -- https://master.php.net/note/delete/112966/useless Del: bad code -- https://master.php.net/note/delete/112966/bad+code Del: spam -- https://master.php.net/note/delete/112966/spam Del: non-english -- https://master.php.net/note/delete/112966/non-english Del: in docs -- https://master.php.net/note/delete/112966/in+docs Del: other reasons-- https://master.php.net/note/delete/112966 Reject -- https://master.php.net/note/reject/112966 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195947) next »