function arguments
| From: | Malte Fucks | Date: | Thu, 18 Jan 2001 20:17:31 +0000 |
| Subject: | function arguments | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81143@lists.php.net to get a copy of this message | ||
Hi, how do i tell a function which arguments can be passed and which must be passed...
example:
function func($arga, $argb, $argc)
{
do_something_with_arga;
do_another_thing_with_argb;
and_if_argc_was_passed_do_something_with_it_too;
}
because i dont want to pass argc if i dont need it, and to pass void arguments like '' is
annoying...