Let\'s say I\'ve got a PHP function foo:
function foo($firstName = \'john\', $lastName = \'doe\') { echo $firstName . \" \" . $lastName; } // foo(); --&g
The way you want: no.
You could use some special mark, like NULL to note that value is not supplied:
function foo($firstName, $lastName = 'doe') { if (is_null($firstName)) $firstName = 'john'; echo $firstName . " " . $lastName; } foo(null, 'smith');