Consider the following code:

function do_something_awesome($a = 'a', $b = 'b') {}


I have set defaults for the variables that the function accepts. I can override the defaults, like this:

do_something_awesome('c', 'd');


…or…

$a = 'c';
$b = 'd';
do_something_awesome($a, $b);


And, I can passing in the first while letting the second use the default, like this:

do_something_awesome('c');


But what if I only want to pass in the second variable? Is that possible?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to