Jump to content

[SOLVED] new line in text file.


jamesxg1

Recommended Posts

it's \n and make sure it's in double quotes:

$content = "Line 1\nLine2";

 

i tryed this,

 

$contents .=  '("' . $contentt . '"),' . "\n";

$open = fopen('data.txt', "a+");

$write = fwrite($open, "$contents");

 

But no luck all i got instead of a new line is this little rectangle box symbol but when i copy and paste that symbol somewhere it is a new line confusing :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.