PHP variable mutation. Array passed to function becomes a 1

Posted by Ben Dauphinee on Stack Overflow See other posts from Stack Overflow or by Ben Dauphinee
Published on 2010-05-16T04:28:45Z Indexed on 2010/05/16 4:40 UTC
Read the original article Hit count: 180

Filed under:

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?

© Stack Overflow or respective owner

Related posts about php