当前位置:Gxlcms > PHP教程 > 使用preg_replace函数不能实现功能,该如何处理

使用preg_replace函数不能实现功能,该如何处理

时间:2021-07-01 10:21:17 帮助过:19人阅读

使用preg_replace函数不能实现功能
$V_Content = preg_replace("/\[em:(\d+):]/is", "", $row['V_Content']);
$V_Content = preg_replace("/\/is", ' ', $V_Content);

使用preg_replace函数把[em:12]变为图片,但是还是显示[em:12]不显示图片!

希望各位高手指点一下!谢谢

------解决方案--------------------
/\[em:(\d+)\]/is

人气教程排行