note 99363 added to language.types.array
| From: | WalterTross at osu1 dot php dot net | Date: | Thu, 12 Aug 2010 18:04:39 +0000 |
| Subject: | note 99363 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171623@lists.php.net to get a copy of this message | ||
It is true that "array assignment always involves value copying", but the copy is a
"lazy copy". This means that the data of the two variables occupy the same memory as long
as no array element changes.
E.g., if you have to pass an array to a function that only needs to read it, there is no advantage
at all in passing it by reference.
----
Server IP: 69.147.83.197
Probable Submitter: 151.8.106.201
----
Manual Page -- http://www.php.net/manual/en/language.types.array.php
Edit -- https://master.php.net/note/edit/99363
Del: integrated -- https://master.php.net/note/delete/99363/integrated
Del: useless -- https://master.php.net/note/delete/99363/useless
Del: bad code -- https://master.php.net/note/delete/99363/bad+code
Del: spam -- https://master.php.net/note/delete/99363/spam
Del: non-english -- https://master.php.net/note/delete/99363/non-english
Del: in docs -- https://master.php.net/note/delete/99363/in+docs
Del: other reasons-- https://master.php.net/note/delete/99363
Reject -- https://master.php.net/note/reject/99363
Search -- https://master.php.net/manage/user-notes.php