出现以下错误 函数create_function()已弃用
$content = preg_replace_callback('#\<php\>(.+?)\<\/php\>#s',create_function(
'$matches',
'$attr["code"] = $matches[1];
return view("core.code", $attr);'
), $content);
$content = preg_replace_callback('#\<pre\>(.+?)\<\/pre\>#s',create_function(
'$matches',
'return "<pre class=\"prettyprint lang-php\">".htmlentities($matches[1])."</pre>";'
), $content);