mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
'function &' is optional with methods (bug #29877)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183859 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6ccf606963
commit
cf43331a95
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.37 $ -->
|
||||
<!-- $Revision: 1.38 $ -->
|
||||
<chapter id="language.references">
|
||||
<title>References Explained</title>
|
||||
|
||||
|
@ -350,6 +350,8 @@ $foo->x = 2;
|
|||
return by-reference, not a copy as usual, and to indicate that
|
||||
reference binding, rather than usual assignment, should be done
|
||||
for <varname>$foo</varname>.
|
||||
<literal>&</literal> by function definition is optional in
|
||||
<link linkend="keyword.class">class</link> methods.
|
||||
</simpara>
|
||||
</note>
|
||||
</sect1>
|
||||
|
|
Loading…
Reference in a new issue