Re: cvs: phpdoc /en/language functions.xml

From: Date: Fri, 03 Nov 2000 13:50:32 +0000
Subject: Re: cvs: phpdoc /en/language functions.xml
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969332785@lists.php.net to get a copy of this message
unsubscribe ----- Original Message ----- From: "Ron Chmara" <ron@opus1.com> To: <phpdoc@lists.php.net> 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> | | |

« previous php.doc (#969332785) next »