if (!is_array($data)) {
return mb_convert_encoding($data, $output, $encoded);
}
else {
foreach ($data as $key=> ;$val) {
if(is_array($val)) {
$data[$key] = array_iconv($val, $input, $output);
} else {
$data [$key] = mb_convert_encoding($data, $output, $encoded);
}
}
return $data;
}
}