Possible Duplicate:
Any way to specify optional parameter values in PHP?
just randomly came across this.
If I have a function like so:
public function getSomething($orderBy='x', $direction = 'DESC', $limit=null){
//do something random
}
When calling the function is it possible to ignore the first two fields and leave them default yet specify the 3rd.
For example:
$random = $this->my_model->getSomething(USE_DEFAULT, USE_DEFAULT, 10);
I know I can pass the 1st and 2nd parameters but all im asking is if their is some kind of special keyword that just says use the default value.
Hope that makes sense. its not a problem, just curious.
thanks for reading