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

WBOY
Release: 2016-06-13 13:29:10
Original
1024 people have browsed it

使用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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!