ecshop中Deprecated:preg_replace():报错怎么办?The /e modifier is deprecated,use preg_replace_callback instead in E:\website\qhd\includes\cls_template.php on line 496$out = "
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 17:30:59
ecshop中Deprecated:preg_replace():报错怎么办?The /e modifier is deprecated,use preg_replace_callback instead in E:\website\qhd\includes\cls_template.php on line 496$out = "
ecshop中Deprecated:preg_replace():报错怎么办?
The /e modifier is deprecated,use preg_replace_callback instead in E:\website\qhd\includes\cls_template.php on line 496
$out = "
ecshop中Deprecated:preg_replace():报错怎么办?The /e modifier is deprecated,use preg_replace_callback instead in E:\website\qhd\includes\cls_template.php on line 496$out = "
------解决方案--------------------
preg_replace_callback($pattern, function($r) { return 与$r相关的值; }, $subject)
你应该给出 cls_template.php 第496行的代码
这样才能给你准确的写法
------解决方案--------------------
那就是
return preg_replace_callback("/{([^\}\{\n]*)}/", function($r) { return $this->select($r[1]); }, $source);
如果还有其他的地方报这样的错,就参照这个改.
你试试吧!