Skip to content

Instantly share code, notes, and snippets.

@scruffyfox
Created February 22, 2012 13:49
Show Gist options
  • Save scruffyfox/1885236 to your computer and use it in GitHub Desktop.
Save scruffyfox/1885236 to your computer and use it in GitHub Desktop.
Clear anything outputted before outputting new text
ob_end_clean();
ob_start();
//output the message
echo ($message);
flush();
ob_end_clean();
exit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment