LoginSignup
0
0

More than 3 years have passed since last update.

PHP ログ出力調査

Last updated at Posted at 2021-01-14

/tmp/dump.logに吐くようにする

$tar1 = '調査対象1';
$tar2 = '調査対象2';
$tar3 = '調査対象3';

ob_start();
var_dump( $tar1,$tar2,$tar3 );
$dump = ob_get_contents();
ob_end_clean();
file_put_contents( '/tmp/dump.log', $dump ,FILE_APPEND);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0