[PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Alexander Skwar
So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100: Is there an equivalent in PHP of the following code: equivalent of asp's %= strTest % Uhm - what does this strange line do?? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage:

Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Philip Olson
PHP does have an equivelent, as shown by Shaun : ?=$var? Things to keep in mind : 1. Is PHP4+ specific 2. Won't work if short_open_tag setting is off (in php.ini) - One reason to turn this off, to enable XML support 3. Doesn't follow up-and-coming PEAR coding standards And as

Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Michael Kimsal
Yes yes I'm a zealot. :) If the people defining the PEAR standards really were that interested in standards, why include alternate ways of doing something? ?=$blah;? And if the 'short tag' method is useful enough for people, why 'exclude' it from a standard? This notion of 'PEAR standards'

Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Philip Olson
Have a look here : http://www.php.net/manual/en/pear.standards.php Regarding ?= : the PEAR example was just part of it as it relates to short_tags, not ?= specifically. http://www.php.net/manual/en/configuration.php#ini.short-open-tag Regards, Philip On Sat, 7 Apr 2001, Michael Kimsal

Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Plutarck
And if the 'short tag' method is useful enough for people, why 'exclude' it from a standard? Because no matter what installation of PHP you have, this works: ?php echo $var; ? But this: ?=$var? Or this: ? echo $var; ? Or this: % echo $var; % ...is made invalid if short_tags are disabled