时间:2021-07-01 10:21:17 帮助过:19人阅读
$dict = array( 'a' => 'b', 'b' => 'c', 'c' => 'd', 'd' => 'e', '0' => '1', '1' => '2', '2' => '3', '3' => '4',);echo $t = strtr('123abc',$dict), PHP_EOL;echo strtr($t, array_flip($dict));
234bcd123abc
非常感谢,原来是这两个函数