note 102991 added to ref.array

From: Date: Fri, 18 Mar 2011 16:46:06 +0000
Subject: note 102991 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-177982@lists.php.net to get a copy of this message
For dennis: You can copy an array just with $a1 = $a2; If that doesn't work for you, use reference. And, if it still doesn't work... use this: eval('$a1 = '.export_var($a2,1).';'); ^^ ---- Server IP: 69.147.83.197 Probable Submitter: 80.30.236.228 ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- https://master.php.net/note/edit/102991 Del: integrated -- https://master.php.net/note/delete/102991/integrated Del: useless -- https://master.php.net/note/delete/102991/useless Del: bad code -- https://master.php.net/note/delete/102991/bad+code Del: spam -- https://master.php.net/note/delete/102991/spam Del: non-english -- https://master.php.net/note/delete/102991/non-english Del: in docs -- https://master.php.net/note/delete/102991/in+docs Del: other reasons-- https://master.php.net/note/delete/102991 Reject -- https://master.php.net/note/reject/102991 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177982) next »