You are here: RE: [PHP] Problem with Tabs and Newlines « PHP « IT news, forums, messages
RE: [PHP] Problem with Tabs and Newlines

Posted by trlists on 03/07/05 17:14

On 7 Mar 2005 Jay Blanchard wrote:

> /t and /n do not work for HTML output. If you view the source of your
> HTML output you will see that the tabs and newlines are used properly.
> You will have to substitute an HTML equivalent.

The HTML equivalent would likely be tables -- but if he uses <pre> then
the tabs and newlines should work.

For the original poster -- in other words, near the start:

$row = "<pre>Filesystem\t" . "Size\n";

and near the end:

$row .= "</pre>\n"

If you don't mind the monospaced font then that should work -- though
you are at the mercy of whatever the browser uses for tab spacing.

--
Tom

 

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

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