better var_dump


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /**
  2.  * pr function
  3.  *
  4.  * @param mixed $var
  5.  * @return void
  6.  * @author Moz Morris
  7.  */
  8. function pr($var) {
  9. echo '<pre>';
  10. print_r($var);
  11. echo '</pre>';
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.