0 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)) Edit Answer