我有以下测试脚本:
<?php
$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Floppy Jalopy\n";
fwrite($fh, $stringData);
$stringData = "Pointy Pinto\n";
fwrite($fh, $stringData);
fclose($fh);
?>
但是,当运行并打开 usign 记事本时,数据将在一行中返回,没有中断,如下所示:
Floppy Jalopy(疯狂盒子)Pointy Pinto(疯狂盒子)
我找不到适合“疯狂盒子”的角色,但它是一个非常疯狂的盒子。是什么赋予了!