PHP set a third optional parameter in the function arguments without setting the second optional parameter?
<p>Bit tricky question but this saves lot of time if you have to modify the script later on to add a third parameter which is a optional, while second was also optional and mostly it was used as second parameter not set, now when you add the third parameter you have to scan through everywhere to find the code snippet and add/set second and then add third ..</p>

<p>is there a easy way to do this ?</p>

<p>example : </p>

<pre><code>  public static function result($sql, $i = 0, $r = 0) {
  //code
  } 
</code></pre>

<p>if we need to add the third $r, later on and most of the times if the code was used as </p>

<pre><code> result($sql);
</code></pre>

<p>now everywhere i had to scan and do</p>

<pre><code> result($sql,0,10);
</code></pre>

<p>is there a easy way to set the third parameter without setting the second one ?</p>
