March 27, 2019

pre pree

PHP: Hypertext Preprocessor
if(!function_exists('pre')){
    function pre($data){
        if(isset($_GET['debug'])){
            pree($data);
        }
    }    
} 

if(!function_exists('pree')){
function pree($data){
            echo '<pre>';
            print_r($data);
            echo '</pre>';  

    }    
} 
Last updated: March 27, 2019