php代码function getPhpContents($path, $vars) { ob_start(); include $path; $result = ob_get_contents(); ob_end_clean(); return $result; }