Posted by Andy Hassall on 08/23/05 23:36
On Tue, 23 Aug 2005 20:24:38 GMT, "Domestos" <never.you@mind.net> wrote:
>Here an unusual one...
>
>Say i am writing a few lines of code in php script as so...
>
><?php
>echo '<table>';
>echo '<tr>';
>echo '<td> blah blah </td>';
>echo '</tr>';
>echo '</table>';
>?>
>
>On my html source the code looks like this...
>
><table><tr><td>blah blah</td></tr></table>
>
>Is there anyway I can get each html tag on a seperate line in the html
>source so it is nice and neat (easy readable)?
echo "<table>\n";
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|