Jump to content

writing newlines to a file


Mordax Praetorian

Recommended Posts

Ok, what I'm doing is pretty screwed up, but involves php files writing other php files

 

thus, having linebreaks in the produced files is pretty important

 

I need hence to know how to add a newline to a string so that when I write it to the file (using fwrite) the linebreak appears in the written file

Link to comment
https://forums.phpfreaks.com/topic/102145-writing-newlines-to-a-file/
Share on other sites

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.