I am looking for the most elegant way to pass variable number of arguments to pass a function.
Consider such a function:
function abc ($x, $y, $l, $m) {
...
}
Is there an elegant way without lots of "ifs" or array of variables pasing as one variable to call a function with:
all ($x, $y, $l, $m) arguments
first three ($x, $y, $l) arguments
first and third ($x, $l) arguments
only second ($y) argument
last two ($l, $m) arguments
Please advice.