Posted By

tucq88 on 04/15/13


Tagged

php debug function


Versions (?)

Debug Function


 / Published in: PHP
 

Use for debug variables in clear way

  1. function debug($var) {
  2. echo '<pre>';
  3. echo "File:".__FILE__."<br>";
  4. echo "Line:" .__LINE__."<br>";
  5. print_r($var);
  6. echo '</pre>';
  7. }

Report this snippet  

You need to login to post a comment.