Skip to content

Instantly share code, notes, and snippets.

@mkolb
Last active January 3, 2023 14:53
Show Gist options
  • Save mkolb/2379498 to your computer and use it in GitHub Desktop.
Save mkolb/2379498 to your computer and use it in GitHub Desktop.
var_dump into error log
<?php
ob_start();
var_dump($this);
error_log(ob_get_clean());
?>
@mkolb
Copy link
Author

mkolb commented Mar 22, 2017

Thanks @nsitbon and @mkormendy! I've updated the gist to simplify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment