Skip to content

Instantly share code, notes, and snippets.

@henare
Created July 19, 2012 06:37
Show Gist options
  • Save henare/3141164 to your computer and use it in GitHub Desktop.
Save henare/3141164 to your computer and use it in GitHub Desktop.
Use output buffering to capture output from var_dump()
ob_start();
var_dump($an_object_or_something);
$object_contents = ob_get_contents();
ob_end_clean();
echo ($object_contents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment