呃.我有一个类,试图使用preg_replace_callback创建一个模板类,但是我不知道参数2是如何写的 public function parse_template\}\-\-\>/s", "{\\1}", $template);
$template = preg_replace_callback("/\{lang\s+(.+?)hello}的东西,并且parse_template找到了它将使用$ this ->language
在默认安装中,我得到以下错误:
preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead:;)/ie', "'<property name=\"'.trim('$1').'\" value=\"'.trim('$2').'\" />\n'", $x
[client 127.0.0.1:48652] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback[client 127.0.0.1:48652] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callbackcontent for code tags and replac