Re: Line feed in a echo

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

 



Ken wrote:
On 4/26/05, Mario de Frutos Dieguez <marfru@xxxxxxxxx> wrote:

Andri Heryandi escribió:


Use echo "something <br>";

is that what you mean?


Mario de Frutos Dieguez wrote:


How can i make a line feed in a echo instruction? like printf("foo\n");


yes that's it thx

--
Mario de Frutos Dieguez

División de Ingeniería del Software
y Comunicaciones

CARTIF -Parque Tecnológico Boecillo

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




in that case i suggest using <br /> instead as that is valid xhtml 1.0.
that would depend on the DTD header you provide. If you provide an HTML =< 4.01 line, then <br /> is syntactically incorrect. However, when using XHTML 1.0+ or XML, it's correct.

Remember that the internal closing of a tag is something that is an add-on to SGML, and part of XML. Since HTML is derived from SGML, and not XML it doesn't have that ability natively; as for XHTML, which is based on both, it's possible to use it; and advised obviously ;)

--
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