[PHP-DOC] cvs: phpdoc /it/language functions.xml From: Luca Perugini (l.perugini <email protected>)
Date: 08/31/00

perugini Thu Aug 31 15:29:12 2000 EDT

  Modified files:
    /phpdoc/it/language functions.xml
  Log:
  Sync with en tree.
  
  
Index: phpdoc/it/language/functions.xml
diff -u phpdoc/it/language/functions.xml:1.1 phpdoc/it/language/functions.xml:1.2
--- phpdoc/it/language/functions.xml:1.1 Sat Dec 18 17:01:09 1999
+++ phpdoc/it/language/functions.xml Thu Aug 31 15:29:12 2000
@@ -155,11 +155,6 @@
      example) a variable or class member.
     </simpara>
     <para>
- In PHP 4.0 it's also possible to specify <literal>unset</literal>
- for default argument. This means that the argument will not be
- set at all, if a value is not supplied.
- </para>
- <para>
      Note that when using default arguments, any defaults should be on
      the right side of any non-default arguments; otherwise, things
      will not work as expected. Consider the following code snippet:
@@ -260,6 +255,20 @@
      </programlisting>
     </informalexample>
    </para>
+ <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:
+ <informalexample>
+ <programlisting role="php">
+function &amp;returns_reference() {
+ return &amp;$someref;
+}
+
+$newref = &amp;returns_reference();
+ </programlisting>
+ </informalexample>
+ </para>
 
   </sect1>
  
@@ -323,7 +332,7 @@
    </para>
 
   </sect1>
-
+
  </chapter>
  
  <!-- Keep this comment at the end of the file