Quite simply, I am building a few classes for forms handling. In my SQL class I have a function that uses mysql_fetch . I want to be able to pass an argument to my class function that dynamically changes the name of the mysql function. For instance,
function($type="array") {
mysql_fetch_$type($this->result);
..
}
or $type="row" or $type="assoc", etc
Is this possible? Or is there another solution?