Reply to user defined functions with optional arguments?
Posted by Exyle on 08/18/05 00:27
I have a function that has two arguents, however depending on the value
of the first argument, the second one may or may not be needed. If I
only input the first argument when calling the function, PHP returns a
warning. many built in php functions have optional arguments, is there a
way to make arguments in user defined functions optional as well?