function get_file_utf8($filename) { $f = file($filename); if (substr($f[0], 0, 3) == "пยปї") { $f[0] = substr($f[0], 3); } return $f; }