public function cleanSpace($trimArr){
foreach($trimArr as $key=>$val){
if($val != ""){
$trimArr[$key] = trim($val);
}
}
return $trimArr;
}
一样的传法
public function cleanSpace($trimArr){
foreach($trimArr as $key=>$val){
if($val != ""){
$trimArr[$key] = trim($val);
}
}
return $trimArr;
}