Re: $previous variable ?

From: Date: Wed, 12 Jul 2006 22:18:27 +0000
Subject: Re: $previous variable ?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-239389@lists.php.net to get a copy of this message
At 2:40 PM -0700 7/12/06, Ray Hauge wrote: >On Wednesday 12 July 2006 14:31, Richard Lynch wrote: > > Using short tags (<? instead of <?php) is also a Bad Idea. >> >> Finally, echo "$previous"; is silly, as the quote marks serve no >> purpose at all. echo $previous; would be better. >> >> -- >> Like Music? >> http://l-i-e.com/artists.htm > >A bit off topic, but I hadn't heard about short tags being a bad idea. What >reasons make short tags worse than the regular tags. Just curious. > >Ray I read that as well -- it has been widely published. If you want to write code that will co-exist with xml then you MAY have problems because xml MAY use that tag as well. Of course you can turn off that in the php.ini file with short_open_tag directive, but it's simpler to just use the formal "<?php". Besides, the formal version is better than using <script language="php">... code... </script>. tedd -- ------------------------------------------------------------------------------------ http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#239389) next »