您可以在数组中定义可转换字符,并使用
@L_502_0@:
$conversions = array( "æ" => "ae","ñ" => "n",); $text = str_replace(array_keys($conversions),$conversions,$text);