note 63180 added to language.types.array
| From: | HenryCesbronLavau at osu1 dot php dot net | Date: | Wed, 15 Mar 2006 13:00:32 +0000 |
| Subject: | note 63180 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105857@lists.php.net to get a copy of this message | ||
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).
----
Server IP: 217.174.203.10
Probable Submitter: 82.123.31.94
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.types.array.php
Edit -- http://master.php.net/note/edit/63180
Del: integrated -- http://master.php.net/note/delete/63180/integrated
Del: useless -- http://master.php.net/note/delete/63180/useless
Del: bad code -- http://master.php.net/note/delete/63180/bad+code
Del: spam -- http://master.php.net/note/delete/63180/spam
Del: non-english -- http://master.php.net/note/delete/63180/non-english
Del: in docs -- http://master.php.net/note/delete/63180/in+docs
Del: other reasons-- http://master.php.net/note/delete/63180
Reject -- http://master.php.net/note/reject/63180
Search -- http://master.php.net/manage/user-notes.php