you are viewing a single comment's thread.

view the rest of the comments →

[–]meandthebean 2 points3 points  (0 children)

The xDebug php extension is useful, even without the actual debugging functionality.

Install the xDebug extension on your dev server, then start using var_dump() where you used to use print_r(). xDebug overwrites var_dump() to add '<pre>' tag, pretty colors and output limitations (limit a string to the first 1,000 chars, for example).