$str = "aaa" . "\n";
echo file_put_contents("/tmp/log", $str, FILE_APPEND); //4
after querying through the linux command, the screenshot is as follows
I hope Daniel can help me answer my question about why the size of the file is growing by twice the number of bytes written
.