note 96396 modified in function.array-unique by danbrown

From: Date: Wed, 24 Feb 2010 22:12:04 +0000
Subject: note 96396 modified in function.array-unique by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166340@lists.php.net to get a copy of this message
Prior to 5.2.9 you may create a list of unique objects this way: <?php for (; ; ) { // ... $uniqueObjectList[spl_object_hash($myObject)] = $myObject; } ?> --was-- Prior to 5.2.9 you may create a list of unique objects this way: for (; ; ) { // ... $uniqueObjectList[spl_object_hash($myObject)] = $myObject; } http://php.net/manual/en/function.array-unique.php

« previous php.notes (#166340) next »