Possible Duplicate:
Replacing a newline with a <br> – PHP
file_put_contents('./files/'.$count.'.txt',$input);
How do you append a <br/> tag per line of the file because \n isn’t recognized in HTML.
for Example, the content of the file was:
A
B
C
D
the output in html is just
ABCD
Or should there be a better way, like replacing \n with <br/>?
Simply use
nl2br()to convert all line breaks to<br />.