Hi,
Friday, August 22, 2003, 12:55:37 PM, you wrote:
JV> I want to create a function with an optional argument/parameter but have
JV> never read a concrete answer on how to do it.
JV> This is what I am assuming
JV> function test(arg1,arg2,arg3 = null)
JV> {
JV> arg3 will be optional
JV> }
JV> is this correct?
Yes that is correct, you don't have to use null any value can be put
in as a default.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php