换行符的使用

mac2022-06-30  20

$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

最新回复(0)