getPhpContents
程序员文章站
2024-01-07 15:29:10
...
php代码
function getPhpContents($path, $vars) { ob_start(); include $path; $result = ob_get_contents(); ob_end_clean(); return $result; }