function iconv_new($from, $to, $str) { $from = strtoupper(str_replace("-", "", $from)); $to = strtoupper(str_replace("-", "", $to)); $chs = new chinese($from, $to, $str, PATH_CLASS . "config/"); return $chs->ConvertIT(); }