Created
November 12, 2016 00:15
-
-
Save midnite81/3c959832037f16c3533a10bfed3172c0 to your computer and use it in GitHub Desktop.
A dev die and dump snippet
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
if (preg_match('/^dev[^\.]*?\./i', $_SERVER['HTTP_HOST'])) { | |
if (function_exists('dd')) { | |
dd('some dump ..', __FILE__.':'.__LINE__); | |
} else { | |
die(var_dump('some dump ..', __FILE__.':'.__LINE__)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment