Possible Duplicate:
Any way to specify optional parameter values in PHP?
How would I skip optional arguments in a function call?
i have this declaration :
public function table_creator($thread, $table_body, $class='datagrid', $caption=null){
some code
}
and when i execute it like that :
<?php echo SomeClass::table_creator($this->report_keys, $report, $caption="Answers"); ?>
in variable $class
there is "Answers" insted of "datagrid", is there a way to not pass $class
for it to work ??