1 php preg-replace special-characters
如何Å使用preg_replace 替换 其他字符串?谢谢!
Å
Dan*_*erg 5
因为你说,我正在假设PHP preg_replace().您不需要为此使用正则表达式.你可以简单地使用str_replace():
preg_replace()
str_replace()
$string = str_replace('Å', 'something else', $string);
对于像这样的简单替换操作,正则表达式是过度的.
归档时间:
15 年,8 月 前
查看次数:
921 次
最近记录: