strtr()
strtr(string,from,to)
strtr(string,array)
string1
from
to
array


<?php
echo strtr("Hilla Warld","ia","eo");
?>



Hello World



<?php
$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 蹇呴渶銆傝瀹氳杞崲鐨勫瓧绗︿覆銆?..


08-28 23:07