Created
November 24, 2015 07:06
-
-
Save s-hiroshi/e1e2fe407be3cc08199b to your computer and use it in GitHub Desktop.
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
| // スクリプトと同階層にあるdefault.logへvar_dumpの内容を出力します。 | |
| $file_info = pathinfo(__FILE__); | |
| $file_dir = $file_info['dirname']; | |
| ob_start(); | |
| var_dump('Hellow World'); | |
| $out = ob_get_contents(); | |
| ob_end_clean(); | |
| file_put_contents($file_dir .'/default.log', $out); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment