Possible Duplicate:
Is it possible to skip parameters that have default values in a php(5) function call?
Lets say this is my function :
function myFunc($a ,$b = 'ball',$c = 'cat')
{
echo "$a $b $c" ;
}
myFunc("apple"); // output : "apple ball cat"
myFunc("apple","box"); // output : "apple box cat"
How can I call myFunc
with default parameter for $b
, eg
myFunc("apple", SOMETHING_HERE , "cow" ); // output : "apple ball cow"