20,359
社区成员
发帖
与我相关
我的任务
分享
$out = "<?php \n" . '$k = ' . preg_replace("/(\'\\$[^,]+)/e" , "stripslashes(trim('\\1','\''));", var_export($t, true)) . ";\n";
$out = "<?php \n" . '$k = ' . preg_replace("/(\\'\$[^,]+)/" , function($r){return stripslashes(trim($r[1],'\''));}, var_export($t, true)) . ";\n";
报错:
Catchable fatal error: Object of class Closure could not be converted to string in /webapp/www/ecshop/includes/cls_template.php on line 494