Is it realy so? I remember someone noting on this list it also work if short tags are off.
I have never tested it and I'm not going to restart our server now, but I will try it at home.


John W. Holmes wrote:

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.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to