炒炒冷饭。我上次看见有人用str_replace 替换是可以写成数组的,,给点资料,连接来看看吧[解决办法]$trans = array("hello" => "hi", "hi" => "hello");echo strtr("hi all, I said hello", $trans);hello all, I said hi