Since a very long time I have been working on php.
But one question, maybe I have no idea about
as i have one function like below:
function hello($param1, $param2="2", $param3="3", $param4="4")
Now, whenever I use this function, and if I need the 4th parameters, which are the $ param4 parameter, then I still need to call everything as empty, like this:
hello(1, '', '', "param4");
So, is there any other way to just pass the 1st and 4th parameters in the call, rather than a long list of spaces?
Or is there any other standard way to do this?
Er.KT source
share