som*_*ame 14 php nested buffering ob-start
我的功能有:
ob_start();
//Include of some files
$content = ob_get_contents();
ob_end_clean();
Run Code Online (Sandbox Code Playgroud)
现在在那些包含是另一个使用相同代码的函数,它们似乎发生冲突.有可能像这样使用它们吗?
d4r*_*nc3 19
尝试使用这样的输出缓冲区:
ob_start();
// your includes
echo ob_get_clean();
Run Code Online (Sandbox Code Playgroud)
在所有包含中使用此功能,您将不会收到任何错误