You can also use tabs (\t).

This is an example using tabs and newlines:
echo "<table>\n<tr>\n\t<td>Hello There</td>\n\t<td>How are
you</td>\n</tr></table>";

Note: You must use quotes because ticks don't work.

Jeff




""Mark"" <[EMAIL PROTECTED]> wrote in message
9597gb$4el$[EMAIL PROTECTED]">news:9597gb$4el$[EMAIL PROTECTED]...
> I'd like my html output to be neatly written, including newlines is
helpful
> but does anyone know of a better way to output newlines than appending
> ."\n"; to every echo statement.
>
> -Mark
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to