当前位置:
代码迷
>>
PHP
>> 炒炒冷饭。该如何处理
详细解决方案
炒炒冷饭。该如何处理
热度:
105
发布时间:
2012-03-09 21:42:55.0
炒炒冷饭。
我上次看见有人用str_replace 替换是可以写成数组的,,给点资料,连接来看看吧
------解决方案--------------------
$trans = array("hello" => "hi", "hi" => "hello");
echo strtr("hi all, I said hello", $trans);
hello all, I said hi
查看全文
相关解决方案