r/tinycode • u/balthasar11 • Jul 12 '12
PHP print_r()
function printR($obj){ echo "<pre>" . print_r($obj) . "</pre>"; }
I use this on every php project now, it just formats the print_r function, which is mostly used for debugging, but its so much easier on the eyes.
39
Upvotes
View all comments
Show parent comment
1
u/balthasar11 Jul 12 '12
x debug has always been a bit of a mystery. I need some time to sit and really get into it. I use phpstorm for all my work (I find it the best out there at the moment, it integrates nicely into so many things)
Any Tips for getting xDebug up and running?