PDA

View Full Version : \t problem



chxxqiqi
06-06-2007, 02:31 AM
<?php
echo "SV-FX \t Fast Top & Bottom Package Inspection";
?>


why it doesnt take effect of "\t"? plz help me~~~~~~~~

Brett
06-06-2007, 01:58 PM
Does \t normally work in HTML? I don't think it does - but I could be wrong... any HTML gurus out there?

Desolator
06-06-2007, 02:51 PM
Dialog.Message("Error", "strGlobalUmm .. strBrett .. "I'm a HTML guru and I have to say that this is PHP.")

English: Umm, Brett, this is PHP, not HTML.

Brett
06-06-2007, 04:07 PM
riiiight - but what do you think echo does? - it outputs to the browse window (i.e. HTML)

Desolator
06-06-2007, 11:35 PM
Oh right...:o normally, a web browser ignores unnecessary whitespace in HTML, so you either need to use this:


<?php
echo "<pre>SV-FX \t Fast Top & Bottom Package Inspection</pre>";
?>