예제 #1
0
function GetPinyin($str,$ishead=0,$isclose=1){
	if($GLOBALS['cfg_ver_lang']=='utf-8') $str = utf82gb($str);
	if(!isset($GLOBALS['__funAdmin'])) include_once(dirname(__FILE__)."/inc/inc_fun_funAdmin.php");
  return SpGetPinyin($str,$ishead,$isclose);
}
예제 #2
0
 function GetPinyin($str, $ishead = 0, $isclose = 1)
 {
     global $cfg_soft_lang;
     if (!function_exists('SpGetPinyin')) {
         //全局函数仅是inc_fun_funAdmin.php文件中函数的一个映射
         require_once DEDEINC . "/inc/inc_fun_funAdmin.php";
     }
     if ($cfg_soft_lang == 'utf-8') {
         return SpGetPinyin(utf82gb($str), $ishead, $isclose);
     } else {
         return SpGetPinyin($str, $ishead, $isclose);
     }
 }