Created
August 26, 2014 18:42
-
-
Save gvsrepins/8f600d2599f8d41d588d to your computer and use it in GitHub Desktop.
dd() - Die and Dump
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
/** | |
* Dump the passed variables and end the script. | |
* | |
* @param mixed | |
* @return void | |
*/ | |
function dd() | |
{ | |
array_map(function($x) { var_dump($x); }, func_get_args()); die; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment