Skip to content

Instantly share code, notes, and snippets.

@branneman
Created July 30, 2013 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save branneman/6111195 to your computer and use it in GitHub Desktop.
Save branneman/6111195 to your computer and use it in GitHub Desktop.
PHP: A better formatted var_dump()
function dump($var) {
ob_start();
var_dump($var);
$output = ob_get_clean();
echo preg_replace("/=>(\s+)/m", ' => ', $output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment