/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);
More than 3 years have passed since last update.
/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);
Register as a new user and use Qiita more conveniently