note 63180 deleted from language.types.array by nforbes
| From: | nforbes@php.net | Date: | Fri, 18 Aug 2006 21:59:51 +0000 |
| Subject: | note 63180 deleted from language.types.array by nforbes | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116042@lists.php.net to get a copy of this message | ||
Note Submitter: Henry Cesbron Lavau
----
even better than $a2 = array_combine($a1, $a1); I finally suggest
$a2 = unserialize(serialize($a1));
which produces exactly what we want : a new array $a2 of new objects not referenced to the objects
of $a1 (as they would with $a2 = $a1).