Home >Backend Development >PHP Tutorial >使用preg_replace函数不能实现功能,该如何处理

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:25:52946browse

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

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

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn