Assigning references are not faster than lazy copy

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@199618 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-10-31 15:04:12 +00:00
parent d07ded4439
commit e3188601d5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.87 $ -->
<!-- $Revision: 1.88 $ -->
<chapter id="language.variables">
<title>Variables</title>
@ -65,11 +65,6 @@ $t
This means that the new variable simply references (in other words,
"becomes an alias for" or "points to") the original variable.
Changes to the new variable affect the original, and vice versa.
This also means that no copying is performed; thus, the assignment
happens more quickly. However, any speedup will likely be noticed
only in tight loops or when assigning large
<link linkend="language.types.array">arrays</link> or
<link linkend="language.types.object">objects</link>.
</para>
<para>
To assign by reference, simply prepend an ampersand (&amp;) to the