Created
March 18, 2012 19:45
-
-
Save tristar500/2080312 to your computer and use it in GitHub Desktop.
Debug Helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// -------------------------------------------------------------------- | |
if(!function_exists('vardump')) | |
{ | |
function vardump($text='',$theVar) | |
{ | |
echo '<pre>'; | |
echo $text . ': '; | |
var_dump($theVar); | |
echo '</pre>'; | |
} | |
} | |
// -------------------------------------------------------------------- | |
if(!function_exists('printr')) | |
{ | |
function printr($text='',$theVar) | |
{ | |
echo '<pre>'; | |
echo $text . ': '; | |
print_r($theVar); | |
echo '</pre>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment