I'm trying to change the case to lower for an array in class:
array_walk ($this->body_chunk, '$this-SpellStrToLower');
function SpellStrToLower ($str){
return strtolower ($str);
}
but it give me error as:
Unable to call $this->SpellStrToLower() - function does not exist
Any idea how to make this callback? I also tried
array_walk ($this->body_chunk, 'strtolower');
doesn't work since it's in a class