Coding Conventions

From: Date: Fri, 03 Nov 2000 19:18:23 +0000
Subject: Coding Conventions
Groups: php.general 
Request: Send a blank email to php-general+get-23623@lists.php.net to get a copy of this message
List, I have a general knowledge question, is it best to code with one set of php tags or many, examples follow: Example 1: ==================== <?php echo('<html><head><title>hello world</title></head><body><p>'); if($a==$b){ do some stuff } echo('about to do more stuff'); if($c==$d){ do more stuff } echo('</body></html>'); ?> Example 2: =================== <html><head><title>hello world</title><head> <body> <?php if($a==$b){ do some stuff } ?> About to do more stuff <?php if($c==$d){ do more stuff } ?> </body> </html> Is there a better of preferred way of coding, is one faster than the other? This is just a curiosity question, thank you for your input. TIA, Kevin Queen

« previous php.general (#23623) next »