RE: [PHP] account for missing/optional arguments in functions?
| From: | Johnson, Kirk | Date: | Thu, 25 Oct 2001 22:52:40 +0000 |
| Subject: | RE: [PHP] account for missing/optional arguments in functions? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72362@lists.php.net to get a copy of this message | ||
Two php functions may help, func_num_args() and func_get_args(). For
example,
$numargs = func_num_args();
$arg_list = func_get_args();
Kirk
> -----Original Message-----
> From: Kurt Lieber [mailto:php@kirpatrick.com]
> Sent: Thursday, October 25, 2001 4:58 PM
> To: php-general@lists.php.net
> Subject: [PHP] account for missing/optional arguments in functions?
>
>
> Is it possible to account/trap missing arguments in functions?