Re: echo statements

From: Date: Fri, 18 Jul 2003 21:30:21 +0000
Subject: Re: echo statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-155845@lists.php.net to get a copy of this message
"Jay Fitzgerald" <jayfitz@bayou.com> wrote in message news:oprsiyc0olhlwux3@localhost... > 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 Method 3: <font class="dbtables"><?= $employer;?></font> - Kevin

« previous php.general (#155845) next »