Posted By

alexstone on 10/19/10


Tagged


Versions (?)

Debug Variable Function


 / Published in: PHP
 

  1. function debugVar($var = null, $prefix = null)
  2. {
  3. if(is_array($var))
  4. echo "<pre>$prefix ", print_r($var), "</pre>";
  5. else
  6. echo "<pre>$prefix $var</pre>";
  7.  
  8. }

Report this snippet  

You need to login to post a comment.