Site Tools


php_iconv

Рекурсивно для массива

function IconvArray(&$array){
  foreach ($array as $key => $value){
    if(is_array($value)){
       IconvArray($array[$key]);
    }else{
       $array[$key] = iconv('UTF-8', 'windows-1251', $value);
    }
  }
}
You could leave a comment if you were logged in.
php_iconv.txt · Last modified: 2019/10/19 17:38 (external edit)

Page Tools