vrana Tue Aug 10 04:44:00 2004 EDT
Modified files: /phpdoc/en/language functions.xml Log: PHP 4 and above\nDefault value for arguments passed by reference http://cvs.php.net/diff.php/phpdoc/en/language/functions.xml?r1=1.52&r2=1.53&ty=u Index: phpdoc/en/language/functions.xml diff -u phpdoc/en/language/functions.xml:1.52 phpdoc/en/language/functions.xml:1.53 --- phpdoc/en/language/functions.xml:1.52 Fri Aug 6 18:37:44 2004 +++ phpdoc/en/language/functions.xml Tue Aug 10 04:43:59 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.52 $ --> +<!-- $Revision: 1.53 $ --> <chapter id="language.functions"> <title>Functions</title> @@ -131,7 +131,7 @@ PHP 3 does not support variable numbers of arguments to functions, although default arguments are supported (see <link linkend="functions.arguments.default">Default argument - values</link> for more information). PHP 4 supports both: see <link + values</link> for more information). PHP 4 and above supports both: see <link linkend="functions.variable-arg-list">Variable-length argument lists</link> and the function references for <function>func_num_args</function>, @@ -338,6 +338,10 @@ Making a bowl of acidophilus raspberry. </screen> </para> + + <para> + Default value for arguments passed by reference is supported since PHP 5. + </para> </sect2> @@ -345,7 +349,7 @@ <title>Variable-length argument lists</title> <simpara> - PHP 4 has support for variable-length argument lists in + PHP 4 and above has support for variable-length argument lists in user-defined functions. This is really quite easy, using the <function>func_num_args</function>, <function>func_get_arg</function>, and