$result = preg_replace(
"/\{([<>])([a-zA-Z0-9_]*)(\?{0,1})([a-zA-Z0-9_]*)\}(.*)\{\\1\/\\2\}/iseU",
"CallFunction('\\1','\\2','\\3','\\4','\\5')",
$result
);
升级到 PHP 5.5 后,上面的代码给出了弃用警告:
已弃用:preg_replace():/e 修饰符已弃用,请改用 preg_replace_callback
如何用 替换代码preg_replace_callback()
?