KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's say I've got a PHP function foo: function foo($firstName = 'john', $lastName = 'doe') { echo $firstName . " " . $lastName; } // foo(); --> john doe Is there any way to specify only the second optional parameter? Example: foo($lastName='smith'); // output: john smith
Tags (comma-separated)
Save Edits
Cancel