PHP variable mutation. Array passed to function becomes a 1
- by Ben Dauphinee
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?