Home > Backend Development > PHP Tutorial > 新手问上这条正则什么意思

新手问上这条正则什么意思

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

新手问下这条正则什么意思?
$str = preg_replace("/\{pc:(\w+)\s+([^}]+)\}/ie", "self::pc_tag('$1','$2', '$0')", $str);

$1 $2 代表前面的2个子模式, 那么$0代表什么。。。

------解决方案--------------------
$0代表 整个模式

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