Harlequin wrote:
Cheers Lars.
So, for example, if I wanted to display some plain text tabbed I'd use:
echo "<pre>string1\tstring2\tstring3</pre>";
There's just one problem though - it formats the text differently to the
rest of the page (I'm using CSS to control this).
Any thoughts...?
Try adding 'white-space: pre;' to the CSS for that bit:
<div style="white-space: pre;">
<?php echo "This\tis\n\ta test."; ?>
</div>
See if adding that helps.
Cheers,
Torben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php