Last active
August 29, 2015 14:01
-
-
Save aMoniker/c2029b087ef90729ac62 to your computer and use it in GitHub Desktop.
Useful PHP Debug Functions
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
function pre_dump(/* whatever you like */) { | |
echo '<pre>'; | |
call_user_func_array('var_dump', func_get_args()); | |
echo '</pre>'; | |
} | |
function die_dump(/* etc */) { | |
call_user_func_array('pre_dump', func_get_args()); | |
die(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment