Skip to content

Instantly share code, notes, and snippets.

@mgng
Last active December 20, 2015 05:19
Show Gist options
  • Save mgng/6077910 to your computer and use it in GitHub Desktop.
Save mgng/6077910 to your computer and use it in GitHub Desktop.
糞デバッグ
<?php
function kusodebug(){
echo '<xmp>', var_dump( func_get_args() ), "</xmp>\n";
}
<?php
require_once '/path/to/kusodebug.php'
session_start();
kusodebug( $_SERVER );
kusodebug( $_SESSION, $_COOKIE, $_GET, $_POST );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment