cvs: phpdoc /en/language functions.xml

From: Date: Fri, 03 Nov 2000 03:49:38 +0000
Subject: cvs: phpdoc /en/language functions.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969332776@lists.php.net to get a copy of this message
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 (#969332776) next »