大文字と小文字を区別しないバージョンのstrtr
?
strtr
過負荷になっている、私は次のことについて話している
string strtr ( string $str , array $replace_pairs )
大文字と小文字を区別しないバージョンのstrtr
?
strtr
過負荷になっている、私は次のことについて話している
string strtr ( string $str , array $replace_pairs )
使用str_ireplace
:
str_ireplace(array_keys($replace_pairs), array_values($replace_pairs), $str);