Skip to content

Instantly share code, notes, and snippets.

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