RE: [PHP] General Coding Question

From: Date: Wed, 20 Jun 2001 21:32:42 +0000
Subject: RE: [PHP] General Coding Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54616@lists.php.net to get a copy of this message
on pages with mostly HTML code, the second style is much prefereable, but on pages with mostly PHP code, the first style is usually OK. overall, i tend towards the second, becuase it's a pain in the ass to esape all the double-quotes in my HTML, my echo statements usulaly end up looking like thi (which, to me, is terrible form) echo "<INPUT TYPE=\"TEXT"\" VALUE=\"". $hash['var'] ."\"...... so i usually use this format, which to my eyes is much prettier :) ?> <INPUT TYPE="TEXT" VALUE="<?= $hash['var'] ?>"> <? > -----Original Message----- > From: James Stevens [mailto:jstevens@endeavors.com] > Sent: Wednesday, June 20, 2001 12:23 PM > To: php-general@lists.php.net > Subject: [PHP] General Coding Question > > > Does it have any effect on performance in either case if a file is > completely done in PHP(1) or interspersed with PHP(2). > > (1) > <?php > echo "<html>"; > ... > ?> > > (2) > <html> > ... > <?php echo $forminput; ?> > ... > > Also, and this is personal preference, which is easier to read/debug? > > James > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#54616) next »