新手提问:PHP里面的正则表达式怎么使用

WBOY
Release: 2016-06-13 13:17:54
Original
727 people have browsed it

新手提问:PHP里面的正则表达式如何使用?
preg_replace('( 新手提问:PHP里面的正则表达式怎么使用 ?', "$1$2src='/images/po.png' lazy-src=$3", $data);

正则表达式在开发工具只测试正确,但在PHP中无法生效,是不是使用的方式不对?

PHP不熟练,求指点。

------解决方案--------------------
echo preg_replace('/( 新手提问:PHP里面的正则表达式怎么使用 ?/', "$1$2src='/images/po.png' lazy-src=$3", $data);

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!