Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@markwatson
Created December 24, 2008 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markwatson/39591 to your computer and use it in GitHub Desktop.
Save markwatson/39591 to your computer and use it in GitHub Desktop.
<?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