Last active
November 16, 2016 17:21
-
-
Save peterwegren/1b58c499288a92c44cb996040e5434b6 to your computer and use it in GitHub Desktop.
Formatted variable printing function for debugging purposes.
This file contains 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 | |
/* | |
* Debugging @TODO: remove or comment out for production | |
*/ | |
function printr($data) { | |
echo "<pre>"; | |
print_r($data); | |
echo "</pre>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment