Değil Sorun ne olabilir emin olun.
Ben ayrı bir satırda $theArray
theFile.txt
içine bir dizi, her dizi öğesi verileri terkediyorum.
$file = fopen("theFile.txt", "w");
foreach ($theArray as $arrayItem){
fwrite($file, $arrayItem . '\n');
}
fclose($file);
Problem is when I open theFile.txt
, I see the \n
being outputted literally.
Also if I try to programmatically read the file line by line (just in case lines are there), it shows them as 1 line meaning \n
are really not having their desired effect.