[SOLVED] making a custom function argument optional
Posted: Tue Apr 05, 2005 6:12 am
Quick question:
When writing a custom function that can take 3 arguments, how can I make the third argument optional?
The function itself works fine with just 2 arguments but PHP displays an error if I leave the 3rd one out.
Thanks!
When writing a custom function that can take 3 arguments, how can I make the third argument optional?
The function itself works fine with just 2 arguments but PHP displays an error if I leave the 3rd one out.
Thanks!