<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Helper functions | |
|-------------------------------------------------------------------------- | |
*/ | |
/** | |
* Dump variable. | |
*/ | |
if ( ! function_exists('d') ) { | |
function d() { | |
call_user_func_array( 'dump' , func_get_args() ); | |
} | |
} | |
/** | |
* Dump variables and die. | |
*/ | |
if ( ! function_exists('dd') ) { | |
function dd() { | |
call_user_func_array( 'dump' , func_get_args() ); | |
die(); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment