RE: [PHP] While and echoing HTML

From: Date: Tue, 10 May 2005 13:21:33 +0000
Subject: RE: [PHP] While and echoing HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-214837@lists.php.net to get a copy of this message
> > I guess it is the missing semicolon. > > > And you can write: > > echo "<tr><td><? echo $product_type ?></td></tr>" > > as simply > > echo "<tr><td>$product_type</td></tr>" > I prefer echo '<tr><td>', $product_type, '</td></tr>'; No string concatenation, or variable replacement required. Jared

« previous php.general (#214837) next »