I would like to have a function in my class that has a default parameter so that one can omit the argument if required. I want the default to be a variable stored in my class;
Hi why is this showing error messages in Aptana?
class property{
private $id;
function load_data($id = $this->id){
//...blah blah blah
}
}
Should I instead use
class property{
static $id;
function load_data($id = self::id){
//...blah blah blah
}
}
?
Thanks for the help