Re: Character newline (\n), How to
| From: | Keith Jeffery | Date: | Wed, 01 Aug 2001 19:28:16 +0000 |
| Subject: | Re: Character newline (\n), How to | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60760@lists.php.net to get a copy of this message | ||
My guess is that it is working, just not like you'd expect. You're
generating HTML, so if you want a new line to be displayed in your HMTL
document you need to do
echo "Hello there<br>";
instead of "Hello there\n";
\n will give you a pretty new line if you look at the source of the page
Keith Jeffery
jeff2619@uidaho.edu
"Ignacio Estrada" <ignacio.estrada@cfe.gob.mx> wrote in message
news:OF356279A8.E0DC1260-ON86256A9B.0068189D@cfemex.com...
> Hi, somebody know why the character newline \n doesn't work? . I am using
> the combination W2K/Apache/PHP4. I tried the newline character on print
> and echo functions but still not working.
> Maybe is a stupid cuestion but I need it.
>
> Thanks in advanced.
>
>
> Atte. Ignacio Estrada F.
> Centro Nacional de Control de Energia
> Area de Control Occidental
> 025+6463, 025+6464, 025+6469
>