title: skipping a function parameter?
body: <p>I have this problem but I don't know how to name it, for instance, I have this function,</p>
  
  <pre><code>function test($param1,$param2 = false,$param3 = false)
  {
  
      if($param2 == true)
      {
          return '2';
      }
  
      elseif($param3 == true)
      {
          return '3';
      }
  
      else 
      {
          return '1';
      }
  }
  </code></pre>
  
  <p>In order to return '3', I have to evoke my function like this,</p>
  
  <pre><code>$test = test('test',false,true);
  </code></pre>
  
  <p>I want to ask whether I can skip the second param and return '3' by evoking the function like this?</p>
  
  <pre><code>$test = test('test',$param3 = true);
  </code></pre>
  
  <p>Or any other method to do so?</p>