Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created March 13, 2014 17:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Shelob9/9533446 to your computer and use it in GitHub Desktop.
Save Shelob9/9533446 to your computer and use it in GitHub Desktop.
Make print_r() more readable. Found on http://us2.php.net/print_r
<?php
function print_r2($val){
echo '<pre>';
print_r($val);
echo '</pre>';
}
?>
@mathieu-aubin
Copy link

Saw it on the same source just today... googled print_r2 and it gave me this link! google is your friend they say - so are you! haaha being lazy - rather copy/paste! 👍

@mllavez
Copy link

mllavez commented Nov 23, 2016

I use this frequently! 💯👌
Gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment