RE: [PHP] Problem with Tabs and Newlines

From: Date: Mon, 07 Mar 2005 15:14:39 +0000
Subject: RE: [PHP] Problem with Tabs and Newlines
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210164@lists.php.net to get a copy of this message
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

« previous php.general (#210164) next »