Created
September 27, 2014 18:56
-
-
Save blar/bcd772366d2dce3d2cf8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $outputBuffer = new OutputBuffer(); | |
| $outputBuffer->capture(function() { | |
| echo 'foo'; | |
| throw new Exception('foobar'); | |
| echo 'bar'; | |
| }); | |
| echo $outputBuffer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment