getPhpContents
程序员文章站
2022-06-13 14:11:46
...
php代码
function getPhpContents($path, $vars) { ob_start(); include $path; $result = ob_get_contents(); ob_end_clean(); return $result; }