I am creating a string that outputs to a text file. I want the text file to be formatted with line breaks.
I am using
$output = "NAME:".$name."/n"."COMMENT:".$comment."/n";
to do this.
This works, except /n is ignored, and no new lines are created.
should work i imagine
Newline is "\n", not "/n".
Using /n, it still does not create a line break, are the quotes right?
The quotes, yes. The slash, no.
cahva just pointed out - "/n" is incorrect. See this page in the manual for more information/examples.