note 7937 modified in call_user_method by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Mon, 21 Aug 2000 09:04:51 +0000 |
| Subject: | note 7937 modified in call_user_method by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2852@lists.php.net to get a copy of this message | ||
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
http://www.php.net/manual/function.call-user-method.php