mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
d07ded4439
commit
e3188601d5
1 changed files with 1 additions and 6 deletions
|
@ -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 (&) to the
|
||||
|
|
Loading…
Reference in a new issue