当前位置: 代码迷 >> PHP >> 使用preg_replace函数不能实现功能,该如何处理
  详细解决方案

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

热度:93   发布时间:2016-04-29 01:04:22.0
使用preg_replace函数不能实现功能
$V_Content = preg_replace("/\[em:(\d+):]/is", "<img src=\"images/face/\\1.gif\">", $row['V_Content']);
 $V_Content = preg_replace("/\<br.*?\>/is", ' ', $V_Content);

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

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

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