$file = fopen('data.txt','a+') or die('Unable to open file!');fwrite($file,"\r\n".'hahah');fclose($file);windows中,注意:使用双引号\n\r才可以换行,单引号不可以,\n\r也不可以。
linux中,注意:使用双引号\n换行。
转载于:https://www.cnblogs.com/gyfluck/p/8566592.html
转载请注明原文地址: https://mac.8miu.com/read-79150.html