且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

php替换字符串中数组中所有出现的键

更新时间:2023-11-07 09:56:04

我的头顶:

$find       = array_keys($list);
$replace    = array_values($list);
$new_string = str_ireplace($find, $replace, $string);