Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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