Re: line break
| From: | Joao Prado Maia | Date: | Fri, 27 Apr 2001 02:23:51 +0000 |
| Subject: | Re: line break | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50538@lists.php.net to get a copy of this message | ||
On Thu, 26 Apr 2001, Alex Piaz wrote:
> At 22:07 26/4/2001 -0400, you wrote:
> >Hi all,
> >I know how to get a line break in text. Is there a way to get a line break
> >between the user agent string below? I would line to print in a column
> >instead of a long row.
>
> Use \n\r concatening with your actual string
>
> See below:
>
> ><?php
> >$newfile = fopen("log_test.txt", "a+");
> >fwrite($newfile, getenv("HTTP_USER_AGENT")."\n\r");
> >fclose($newfile);
> >?>
>
>
> It will work.
>
Actually the correct sequence is \r\n on Windows platforms. Just a small
note.
Joao
--
João Prado Maia <jpm@phpbrasil.com>
http://phpbrasil.com - php com um jeitinho brasileiro