Пример #1
0
function toUtf($value)
{
    if ($value) {
        return icon_to_utf8($value);
    } else {
        return false;
    }
}
Пример #2
0
function icon_to_utf8($s)
{
    if (is_array($s)) {
        foreach ($s as $key => $val) {
            $s[$key] = icon_to_utf8($val);
        }
    } else {
        $s = ct2($s);
    }
    return $s;
}