POST TIME:2021-05-23 02:20
for($i=0;$i<$slen;$i++){
if(ord($str[$i])>0×80)
{
$c = $str[$i].$str[$i+1];
$i++;
if(isset($pinyins[$c])){
if($ishead==0) $restr .= $pinyins[$c];
else $restr .= $pinyins[$c][0];
}else $restr .= “-”;
}else if( eregi(“[a-z0-9]“,$str[$i]) ){ $restr .= $str[$i]; }
else{ $restr .= “-”; }
}
|
