RE: [PHP] Generating a new line in a text file
| From: | Jason Murray | Date: | Fri, 18 Jan 2002 05:09:19 +0000 |
| Subject: | RE: [PHP] Generating a new line in a text file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81026@lists.php.net to get a copy of this message | ||
> : Don't know why it's got everyone else stumped.
> :
> : "\n" is the new line character. Make sure you use it in "" and
> : not in ''.
> :
> : Jason
>
> Unfortunately, that doesn't work either, it changes the \n that
> appeared at the end of the new line to a single black block. It
> does not put the next quote onto a new line.
Ah, so you're opening the file in something that doesn't understand
newlines and prefers line feeds, then.
In that case you'll want to use \r instead of \n.
Jason