Re: [PHP-DOC] cvs: phpdoc /en/language functions.xml From: Aleksandar-Sale Cukic (acukic <email protected>)
Date: 11/03/00

unsubscribe

----- Original Message -----
From: "Ron Chmara" <ron <email protected>>
To: <phpdoc <email protected>>
Sent: Friday, November 03, 2000 4:49 AM
Subject: [PHP-DOC] cvs: phpdoc /en/language functions.xml

| ronabop Thu Nov 2 19:49:38 2000 EDT
|
| Modified files:
| /phpdoc/en/language functions.xml
| Log:
| Reference returning from a function (fixing example, text)
|
| Index: phpdoc/en/language/functions.xml
| diff -u phpdoc/en/language/functions.xml:1.8
phpdoc/en/language/functions.xml:1.9
| --- phpdoc/en/language/functions.xml:1.8 Fri Sep 15 09:09:44 2000
| +++ phpdoc/en/language/functions.xml Thu Nov 2 19:49:38 2000
| @@ -258,14 +258,14 @@
| <para>
| To return a reference from a function, you have to use
| the reference operator &amp; in both the function declaration and
| - when assigning the return value to a variable:
| + when assigning the returned value to a variable:
| <informalexample>
| <programlisting role="php">
| function &amp;returns_reference() {
| - return &amp;$someref;
| + return $someref;
| }
|
| -$newref = &amp;returns_reference();
| +$newref =&amp;returns_reference();
| </programlisting>
| </informalexample>
| </para>
|
|
|