Function call:
$trdata .= $this->table_td($tddata, 1, $td);
Function:
public function table_td($data = '', $parameters = array()){
return($this->table_thtd($data, 0, $parameters));
}
A print_r before the return shows a 1, instead of the data array I’m passing. Any thoughts on what’s going on?
You’re passing a
1as the second argument to the function call, and your$parametersargument is the second argument in the function definition… what do you expect?