Does PHP allow for overloading functions. That is, having two different functions of the same name with different parameter list such as:
function doSearch(int1, int2)
and
function doSearch(int1, int2, int3)
???
i don't think so, but you can define default values for function args like this:
function foo($arg1, $arg2, $arg3='') { }
you could then put some branching logic in the function to deal with the two different options.
You can also use [man]func_get_args[/man] to dynamically load arguments.