i am trying to writing a string of character to an output file using fwrite()
fwrite($myfile, "$string\n");
fwrite($myfile, "$string\n");
when viewed using notepad the nextline of the string is appended to the string before it.
eg
$string = "this is word";
$myfile:
this is word[]this is word
//[] weird character
it is okay when viewed using wordpad.
plez help