function get_pinyin($str, $charset = "utf-8") { $pinyin = new pinyin(); return $pinyin->get_pinyin($str, $charset); }