SV: [PHP-WIN] optional function parameters
| From: | Henrik Hornemann | Date: | Mon, 09 Aug 2004 09:53:50 +0000 |
| Subject: | SV: [PHP-WIN] optional function parameters | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-24369@lists.php.net to get a copy of this message | ||
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:Ragnar_7@gmx.de]
Sendt: 9. august 2004 10:59
Til: php-windows@lists.php.net
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 have to do in your own functions to allow for something like that ?
cheers,
Ben
--
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php