Skip to content

Instantly share code, notes, and snippets.

@peterwegren
Last active November 16, 2016 17:21
Show Gist options
  • Save peterwegren/1b58c499288a92c44cb996040e5434b6 to your computer and use it in GitHub Desktop.
Save peterwegren/1b58c499288a92c44cb996040e5434b6 to your computer and use it in GitHub Desktop.
Formatted variable printing function for debugging purposes.
<?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