Debug a variable


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

When working in PHP I sometimes want to know exactly what is in a variable. This is easy enough to find out, but having this function around it is even easier, as it includes the HTML pre tag making it easier to read, and it allows you to choose how it should be debugged (defaults to using print_r()).

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.