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 ..
is there a easy way to do this ?
example :
public static function result($sql, $i = 0, $r = 0) {
//code
}
if we need to add the third $r, later on and most of the times if the code was used as
result($sql);
now everywhere i had to scan and do
result($sql,0,10);
is there a easy way to set the third parameter without setting the second one ?