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

Posted by Bruno Santos on 03/04/05 16:38

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.

if i use double quotes, in a simple html comand i need to use \" and i
dont want that.

is any way i could use single quotes, and getting the line feed ??
example:
Double quotes:
echo "<table border=\"1\" width=\"800px\">\n";

single quotes:
echo '<table border="1" width="800px">';


cheers

Bruno Santos

--
Say no to software patents
www.nosoftwarepatents.com/
--
bvsantos@hal.min-saude.pt
--
Divisao de Informatica
informatica@hal.min-saude.pt
Tel: +351 272 000 155
Fax: +351 272 000 257
--
Hospital Amato Lusitano
geral@hal.min-saude.pt
Tel: +351 272 000 272
Fax: +351 272 000 257

 

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

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