Arrays with references (bug #20993)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164351 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-07-26 15:16:26 +00:00
parent cc46787fd6
commit e2a9b05e17

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.27 $ -->
<!-- $Revision: 1.28 $ -->
<chapter id="language.references">
<title>References Explained</title>
@ -43,6 +43,12 @@ $a =& $b
</para>
</note>
</para>
<note>
<para>
If array with references is copied, its values are not dereferenced.
This is valid also for arrays passed by value to functions.
</para>
</note>
<para>
The same syntax can be used with functions, that return references,
and with <literal>new</literal> operator (in PHP 4.0.4 and later):