array_walk on class functions
Posted: Tue Jul 08, 2008 3:51 pm
Hi,
i am trying to do an array_walk on a class function
and i got an error
What is the correct syntax for array_walking class methods?
i am trying to do an array_walk on a class function
Code: Select all
array_walk($PublishVars->fields,array('DB', 'set_data_type_array'));the line that the error reffered to is<b>Fatal error</b>: Using $this when not in object context in
Code: Select all
function set_data_type_array($val){
$val = $this->set_data_type($val);
}