Re: Character newline (\n), How to
| From: | Philip Olson | Date: | Wed, 01 Aug 2001 19:35:54 +0000 |
| Subject: | Re: Character newline (\n), How to | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60763@lists.php.net to get a copy of this message | ||
A couple possible reasons :
1. Mixing \n and <br>
\n won't create a newline within your browser but rather it will within
your html source code. Meaning, look at your html source and notice the
newlines.
2. Using single quotes
echo '\n'; will literally print '\n', in otherwords, it won't be
evaluated. Odds are this is not your problem but oh well. "\n" will
expand into a newline.
Perhaps this faq will help too :
http://www.faqts.com/knowledge_base/view.phtml/aid/901
Also, have a look at the nl2br() function. Regarding the above faq, if
anyone can make it more "understandable" feel free.
Regards,
Philip
On Wed, 1 Aug 2001 ignacio.estrada@cfe.gob.mx wrote:
> 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>