title: Do I have to always pass all arguments to PHP function?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10881630/php-calling-functions-with-multiple-variables">PHP - Calling functions with multiple variables</a>  </p>
  </blockquote>
  
  
  
  <pre><code>function test($var1=null, $var2=null, $var3=null){
      //smart stuff goes here
  }
  </code></pre>
  
  <p>Do I have to every time call the function passing all variables?</p>
  
  <pre><code>test(null, $var2, null);
  </code></pre>
  
  <p>I'd like to pass only $var2 because all the other variables have default values... Is it even possible?</p>
  
  <p>In JavaScript we can pass an object to the function, is there something similar in PHP?</p>