Magnus Lawrie wrote:
>
> hello,
> I'm writing to files with php. How do I include a carriage return, i.e.
> write strings to different lines in a text file?
> Thanks,
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
echo "foo\n"; #<-- the \n is a newline
echo "foo\r"; #<-- the \r is a carriage return
what you use will depend on what system you're working on...if *nix, \n
will do...
-jack
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]