RE: [PHP] Which way is better?

From: Date: Fri, 09 May 2003 01:11:24 +0000
Subject: RE: [PHP] Which way is better?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146951@lists.php.net to get a copy of this message
Personally I hate breaking in and out of php and html as it is a lot better to seperate presentation from the logic, with the one exception we use dreamweaver mx to build all our sites and make use of its templates so that other people can add the static content, with careful consideration it can be quite useful to be able to see the images, tables etc.. even if logical operators are involved dreamweaver mx has alot better support for this now ) Regards, Joseph -----Original Message----- From: Ben Cheng [mailto:kenshin@mac.com] Sent: Friday, 9 May 2003 10:30 AM To: php-general@lists.php.net Subject: [PHP] Which way is better? Is it better to code this way: <? if ($option == 1) { echo "Blah blah."; } ?> or: <? if ($option == 1) { ?> Blah blah. <? } ?> Is there a performance difference or just a matter of readability? -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#146951) next »