Created
September 20, 2015 19:04
-
-
Save alborq/7dc247d26ec8e33523ad to your computer and use it in GitHub Desktop.
Gist for codingame, PHP dump for error output.
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
/** | |
* Envoi un var_dump dans la sortie erreur | |
* @param mixed $var | |
*/ | |
function dump($var){ | |
ob_start(); | |
var_dump($var); | |
$result = ob_get_clean(); | |
fwrite(STDERR,$result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment