Re: line feed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 04 Mar 2005 14:38:20 +0000, Bruno Santos
<bvsantos@xxxxxxxxxxxxxxxx> 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;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux