title: PHP Function Definition, Null Arguments
body: <p>What's the best way to structure a function, that has parameters that can be null?</p>
  
  <p>Eg</p>
  
  <pre><code>    function newDate($day, $time = null, $overRide) {
  
          Do something with the variables
  
      }
  
  # newDate('12', '', 'yes');
  </code></pre>
  
  <p>Would it be to simply restructure the function as follows:</p>
  
  <pre><code>    function newDate($day, $overRide, $time = null) {
  
          Do something with the variables
  
      }
  
  # newDate('12', 'yes');
  </code></pre>