title: Any way to specify optional parameter values in PHP?
body: <p>Let's say I've got a PHP function foo:</p>
  
  <pre><code>function foo($firstName = 'john', $lastName = 'doe') {
      echo $firstName . " " . $lastName;
  }
  // foo(); --&gt; john doe
  </code></pre>
  
  <p>Is there any way to specify only the second optional parameter?</p>
  
  <p>Example:</p>
  
  <pre><code>foo($lastName='smith'); // output: john smith
  </code></pre>