echo statements

From: Date: Fri, 18 Jul 2003 21:08:50 +0000
Subject: echo statements
Groups: php.general 
Request: Send a blank email to php-general+get-155841@lists.php.net to get a copy of this message
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> If you would, please give reasons why to support your opinion. Thanks -- Jay Fitzgerald, Design Director - CPW-A, CPWDS-A, CPWDV-A, CECM-A, CWCSB-A Bayou Internet - http://www.bayou.com Toll Free: 888.30.BAYOU (22968) Vox: 318.338.2034 / Fax: 318.338.2506 E-Mail: jayfitz@bayou.com ICQ: 38823829 / AIM: bayoujf / MSN: bayoujf / Yahoo: bayoujf

« previous php.general (#155841) next »