Created
March 10, 2019 16:22
-
-
Save flexchar/5539e6e536403a119c694f398230169a to your computer and use it in GitHub Desktop.
dd() & dump() helpers for PHP
This file contains hidden or 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 | |
@ini_set('display_errors', 1); | |
function dd(...$any) | |
{ | |
foreach ($any as $var) { | |
var_dump($var); | |
} | |
die(); | |
}; | |
function dump(...$any) | |
{ | |
foreach ($any as $var) { | |
var_dump($var); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment