How can I use array_walk_recursive()
instead of this:
function check_value($val){
if(is_array($val)){
foreach($val as $key => $value)
$val[$key] = check_value($value);
return $val;
}
return clean_value($val);
}
?
See Question&Answers more detail:os