Re: PHP and HTML Conventions

From: Date: Tue, 13 Jul 2004 01:38:48 +0000
Subject: Re: PHP and HTML Conventions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190305@lists.php.net to get a copy of this message
> Hi all. > > I just wondered if the general convention was to use entirely PHP and > simply > encase HTML TAGs within that or use a mix and simply use PHP TAGs when > required. > > > > -- > ----------------------------- > Michael Mason I'm trying to get myself to use PHP tags when required. When I first started learning PHP with HTML I would encase entire tables under PHP tags out of bad learning habits. Not only was it ugly to look at (so many echo statments, quotes ("") and escape slashes (\") ) but it became really hard to read the code. Also, using the PHP tags can mean fewer characters in your webpage making it slightly smaller. But...that's just my preference. :) --Matthew Sims --<http://killermookie.org>

« previous php.general (#190305) next »