The issue is, I have a function with 3 parameters. All three parameters have a default value. But is it possible to call the function with only one of the parameters like so:
function check($a=1, $b=2, $c=3){
echo 'a : ' . $a;
echo 'b : ' . $b;
echo 'c : ' . $c;
}
$res = check($c=5);
And expect the following result:
a : 1
b : 2
c : 5
I have tried using this kind of code but what happens is that $c=5
is passed to the first parameter. In this case to $a