You are here: Re: [PHP] line feed « PHP « IT news, forums, messages
Re: [PHP] line feed

Posted by Jason Petersen on 03/04/05 16:46

On Fri, 04 Mar 2005 14:38:20 +0000, Bruno Santos
<bvsantos@hal.min-saude.pt> wrote:
> Hello.
>
> How do i print a line return using the echo command, for when i see the
> page source,
> i get the code line by line and not all in the same line.
>
> using double quotes ( " ), i can put \n at the end and i get the result
> i want,
> but, using sinle quotes ( ' ), \n doesnt work.

Maybe you could use the HEREDOC format?

echo <<<END
<table border="0" width="100%">
<tr><td>some table stuff</td></tr>
</table>

END;

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация