Created
March 7, 2018 07:46
-
-
Save k-kurikuri/5c739ca705dd27d2a3fe5c6547db5c67 to your computer and use it in GitHub Desktop.
PHPでvardump, print_rの結果をファイル出力する処理
This file contains 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
ob_start(); | |
print_r($var); | |
$out = ob_get_contents(); | |
ob_end_clean(); | |
file_put_contents('file', $out, FILE_APPEND); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
備忘録