If I have the following function:
function foo($a = 'a', $b = 'b', $c = 'c', $d = 'd')
{
// Do something
}
Can I call this function and only pass the value for $d, therefore leaving all the other arguments with their defaults? With code something like this:
foo('bar');
Or do I have to call it with something like this:
foo(null, null, null, 'bar');