note 7937 deleted from function.call-user-method by cmb
| From: | cmb@php.net | Date: | Sun, 25 Oct 2020 13:15:28 +0000 |
| Subject: | note 7937 deleted from function.call-user-method by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215643@lists.php.net to get a copy of this message | ||
Note Submitter: jmcastagnetto at php dot net
----
You can pass a variable number of parameters to a function, use a definition like:
function mymethod ($v1, $v2, $v3="", $v4="")
and then you can pass 2, 3 or 4 parameters. This is explained in the "Functions" section
of the manual.
See also the PHP4 functions: func_num_args(), func_get_arg(), and func_get_args(), and examples
therein