Asked 2 years ago
18 Jul 2021
Views 1300
Abraham

Abraham posted

save var_dump into text file

save var_dump into text file
jessica

jessica
answered Jul 24 '21 00:00

file_put_contents can get used for to save the var_dump into text file.

$obj=new stdClass;
$obj->status=1;
file_put_contents('log.txt',var_dump($obj))
Post Answer