strtr() strtr(string,from,to)strtr(string,array)string1 from to array echo strtr("Hilla Warld","ia","eo"); ?> Hello World $arr = array("Hello" => "Hi", "world" => "earth"); echo strtr("Hello world",$arr); ?> Hi earth http://www.bkjia.com/PHPjc/319758.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/319758.htmlTechArticle瀹氫箟鍜岀敤娉?strtr() 鍑芥暟杞崲瀛楃涓蹭腑鐗瑰畾鐨勫瓧绗︺€?璇硶 strtr(string,from,to)鎴栬€?strtr(string,array)鍙傛暟 鎻忚堪 string1 蹇呴渶銆傝瀹氳杞崲鐨勫瓧绗︿覆銆?..