RsD0p9BK
9/25/2014 - 11:17 AM

debugPrint.php

function debugPrint($what='', $level=0, $plus='+') {
    // if ($_GET['debug'] == 1) {
        if (!empty($what)) {
            echo '<pre>';
            if (is_array($what)) {
                print_r($what);
            } else {
                echo str_repeat($plus, $level) . '> ' . $what;
            }
            echo '</pre>';          
        }
    // }
}