Re: bug in code - can't find it!
| From: | John W. Holmes | Date: | Thu, 07 Aug 2003 02:32:58 +0000 |
| Subject: | Re: bug in code - can't find it! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158594@lists.php.net to get a copy of this message | ||
AciD wrote:
just a little point; u can replace <?echo $search_result2[a.retired_flag]?> by <?=$search_result2[a.retired_flag]?> which is better imho.and you're entitled to it, but it's not better. Shorter isn't always better. Your code will break if enable_short_open_tags is disabled in php.ini or an .htaccess file. Sure, it's on by default, but some people turn it off, especially when dealing with XML a lot. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com