I can't kind of make out the first return statement, can anybody help to explain how it works?
the array_map
accept a function for the first arg, but here is an array. and how does array(&$this, '_trimData')
work? thanks for explaining.
private function _trimData($mParam)
{
if (is_array($mParam))
{
return array_map(array(&$this, '_trimData'), $mParam);
}
$mParam = trim($mParam);
return $mParam;
}