Skip to content

Instantly share code, notes, and snippets.

@joemaller
Last active December 20, 2019 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joemaller/8f656af9ba620b0cb689e0cc012fc361 to your computer and use it in GitHub Desktop.
Save joemaller/8f656af9ba620b0cb689e0cc012fc361 to your computer and use it in GitHub Desktop.
snippet for dumping Kint-php to error_log as ANSI text, then resetting Kint back to normal
<?php
// DEBUG
\Kint::$mode_default = \Kint::MODE_CLI;
error_log(@d($val));
\Kint::$mode_default = \Kint::MODE_RICH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment