Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.