首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

炒炒冷饭。该如何处理

2012-03-09 
炒炒冷饭。我上次看见有人用str_replace替换是可以写成数组的,,给点资料,连接来看看吧[解决办法]$trans a

炒炒冷饭。
我上次看见有人用str_replace 替换是可以写成数组的,,给点资料,连接来看看吧



[解决办法]
$trans = array("hello" => "hi", "hi" => "hello");
echo strtr("hi all, I said hello", $trans);


hello all, I said hi
 

热点排行