title: Using an array as a default parameter in a PHP function
body: <p>Is it possible to use an array as a default parameter in a PHP function?</p>
  <p>I would like to do the following:</p>
  <pre><code>$arr = array(1,2,3,4);
  
  function sample($var1, $var2, $var3 = $arr){
      echo $var1.$var2;
      print_r($var3);
  }
  
  sample('a','b');
  // Should still work without the third parameter and default to $arr
  </code></pre>