4 ms·
One line debugger in php. $data is the thing you wish to look at. <?php echo str_replace(' ', ' ', nl2br(htmlentities(iconv('
by mikeytown2 15y ago
One line debugger in php. $data is the thing you wish to look at.
<?php
echo str_replace(' ', ' ', nl2br(htmlentities(iconv('utf-8', 'utf-8//IGNORE', print_r($data, TRUE)), ENT_QUOTES, 'UTF-8')));
?>
- chime 15y agoI just do echo '<pre>' and print_r. Works quite well.
- mikeytown2 15y agounless what your debugging has html in in
- chime 15y agoVery true. Then I do htmlentities or just view-source (which works surprisingly well in Chrome). Usually though it's just arrays and objects for me.