I am trying to figure out a way to use a function that has one "must have" argument, and the rest variable.
function do_this($must_have, ..., ..., ...)
My goal is to have the same funciton that could handle multiple types of argument sets, however, they MUST include at least $must_have. After $must_have, then they could have 2 more args, or 50 more args.
For example, I want this to be possible:
function do_this($must_have, $arg1, $arg2, $arg3, $arg4)
and also...
function do_this($must_have, $arg1, $arg2)
Is there a way to do this?