Created
December 24, 2008 05:10
-
-
Save markwatson/39591 to your computer and use it in GitHub Desktop.
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 | |
// error logging function that saves arrays, objects - anything. | |
// easier to type then always typing "error_log(print_r($var,1)); | |
function e($var, $mess=null) | |
{ | |
error_log($mess.': '.print_r($var,1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment