php - Pass-by-reference for functions with varying length of functions -
I have a function with an optional number argument, something like this:
function DoSomething () $ $ Args = funct_get_args (); // and the rest function}
In the above given function, how can I define the first argument passed from the context?
So when I call it, I am able to do this:
Just declare it in the parameter list:
Function DoSomething (and the first $) {$ args = func_get_args (); // and the rest function} DoSomething ($ first, $ second, $ third);
Comments
Post a Comment