24 July 2019

Output buffering catches all echo-s, print-s and other output to stdOut. Then you can call a function on script shutdown to output all of the content. You can buffer output and stop scripts from output for an example.

Source code viewer
  1. // Turn output buffering on.
  2.  
  3. // Called on the end of script iterations.
  4. function shutdown() {
  5. // Print all buffered output.
  6. }
Programming Language: PHP