title: PHP - Calling functions with multiple variables
body: <p>This seems a basic question I know but I've not been able to find the answer.</p>
  
  <p>Let's assume a basic function:</p>
  
  <pre><code>function basicFunction ( $var1, $var2 = 1, $var3 = 2, $var4 = 5 )
  {
  // Do some stuff
  // Return
  }
  </code></pre>
  
  <p>Now let's assume I want to call that function with the following variables:</p>
  
  <pre><code>$var1 = 0
  
  $var2 = 1
  
  $var3 = 2
  
  $var4 = 3
  </code></pre>
  
  <p>I can do this:</p>
  
  <pre><code>$someResult = basicFunction( 0, 1, 2, 3 );
  </code></pre>
  
  <p><code>$var2</code> and <code>$var3</code> are already set though, so how would I call the function without having to repeat the value for <code>$var2</code> and <code>$var3</code>?</p>