--- Jay Fitzgerald <[EMAIL PROTECTED]> wrote:
> When echoing html code that will include variables from a while or
> if loop, which method is best?
...
> Method 1: echo "<td align=\"left\" VALIGN=\"top\"><font 
> class=\"dbtables\">$employer</font></td>";
> OR
> Method 2: <td align="left" valign="top"><font class="dbtables"><?php echo 
>"$employer"; ?></font></td>

Method 2 is my choice.

>  If you would, please give reasons why to support your opinion.

Readability and performance.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to