Skip to content

Commit

Permalink
Add dump function
Browse files Browse the repository at this point in the history
  • Loading branch information
levidurfee committed Jul 29, 2018
1 parent 6729890 commit 2fc2006
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

if(!function_exists('dd')) {
function dd($input) {
dump($input);
die();
}
}

if(!function_exists('dump')) {
function dump($input) {
if(BD_WEB_REQUEST) {
echo '<pre>';
}

var_dump($input);

if(BD_WEB_REQUEST) {
echo '</pre>';
}
die();
}
}

Expand Down

0 comments on commit 2fc2006

Please sign in to comment.