Created
April 12, 2018 06:23
-
-
Save rozklad/15b0afea161956b45d9496e419d3fbf0 to your computer and use it in GitHub Desktop.
The one and only Die Dump a.k.a. Dump and Die
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 | |
/** | |
* Die dump | |
* | |
* @return void | |
*/ | |
if (!function_exists('dd')) | |
{ | |
function dd() | |
{ | |
array_map(function($v) { | |
var_dump($v); | |
}, func_get_args()); | |
die; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment