mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
PHP 4 and above\nDefault value for arguments passed by reference
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165895 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
21db8ce5c6
commit
f7aa82106d
1 changed files with 7 additions and 3 deletions
|
@ -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 @@ bar();
|
|||
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 @@ echo makeyogurt("raspberry"); // works as expected
|
|||
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 @@ Making a bowl of acidophilus raspberry.
|
|||
<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
|
||||
|
|
Loading…
Reference in a new issue