Here is my code:
function myfunc( $arg1, $arg2 = 'sth', $arg3 = 'sth else' ){
// do stuff
}
Now I want to set a new value for arg3
and keep the default defined value for arg2
. How can I do that?
Something like this:
myfunc( true, <keep everything defined as default>, $arg3 = 'new value' );
The expected result is sth
in this fiddle.