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

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

WBOY
WBOYOriginal
2016-06-13 10:51:29787browse

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

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

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

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