Skip to content

Instantly share code, notes, and snippets.

@mllavez
Forked from Shelob9/print_r2.php
Created April 5, 2017 21:58
Show Gist options
  • Save mllavez/d45ae2b5a2a888f47e31af8abb77c705 to your computer and use it in GitHub Desktop.
Save mllavez/d45ae2b5a2a888f47e31af8abb77c705 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>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment