-
-
Save inix/833e8f63ada34c64843deeda9bd3b8f5 to your computer and use it in GitHub Desktop.
var_dump into error log
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 | |
ob_start(); | |
var_dump($this); | |
$contents = ob_get_contents(); | |
ob_end_clean(); | |
error_log($contents); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment