Date: 08/31/00
- Next message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/language control-structures.xml"
- Previous message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/language expressions.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 & in both the function declaration and
+ when assigning the return value to a variable:
+ <informalexample>
+ <programlisting role="php">
+function &returns_reference() {
+ return &$someref;
+}
+
+$newref = &returns_reference();
+ </programlisting>
+ </informalexample>
+ </para>
</sect1>
@@ -323,7 +332,7 @@
</para>
</sect1>
-
+
</chapter>
<!-- Keep this comment at the end of the file
- Next message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/language control-structures.xml"
- Previous message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/language expressions.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

