Return to Snippet

Revision: 34186
at October 19, 2010 02:34 by alexstone


Initial Code
function debugVar($var = null, $prefix = null)
{
  if(is_array($var))
    echo "<pre>$prefix ", print_r($var), "</pre>";
  else
    echo "<pre>$prefix $var</pre>";
      
  exit;
}

Initial URL

                                

Initial Description

                                

Initial Title
Debug Variable Function

Initial Tags

                                

Initial Language
PHP