$file = fopen('data.txt','a+') or die('Unable to open file!');
fwrite($file," ".'hahah');
fclose($file);
windows中,注意:使用双引号 才可以换行,单引号不可以, 也不可以。
linux中,注意:使用双引号
换行。
$file = fopen('data.txt','a+') or die('Unable to open file!');
fwrite($file," ".'hahah');
fclose($file);
windows中,注意:使用双引号 才可以换行,单引号不可以, 也不可以。
linux中,注意:使用双引号
换行。