RE: [PHP] "\n" Seems not to work fine
| From: | Jason Murray | Date: | Tue, 12 Mar 2002 23:29:27 +0000 |
| Subject: | RE: [PHP] "\n" Seems not to work fine | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88267@lists.php.net to get a copy of this message | ||
> I cannot get a breakline or line appart with \n with printf or print,
> I've to use always <BR>.
> \n shows only a space.
HTML does not break lines on newlines in the source code. That's
why <BR> is there.
If you look at the source code, you'll see there is a newline in
the source. Remember that HTML source code tells the browser how
to render the page.
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Developer, Melbourne IT
"Work now, freak later!"