Very easy, check out
http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list
Regards Henrik Hornemann
-Oprindelig meddelelse-
Fra: Ragnar [mailto:[EMAIL PROTECTED]
Sendt: 9. august 2004 10:59
Til: [EMAIL PROTECTED]
Emne: [PHP-WIN] optional function parameters
Hi guys,
another quick one. I was wondering what you'd have to do
with a function, so it would be able to have 'optional' parameters
when calling it.
much like:
string substr ( string string, int start [, int length])
where you can just omit the [, in length] part if you want.
What do you hav