RE: [PHP] quick echo output

From: Date: Tue, 04 Mar 2003 08:24:45 +0000
Subject: RE: [PHP] quick echo output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138000@lists.php.net to get a copy of this message
> Ok most all programs I see they use <?php echo $somevar; ?> > within the html. > Now I have always used the shortened version <?=$somevar?> Is > there a reason > why I should not use this? I've never had any problems with this way of > doing things, but I just don't see anyone else using that format.. I think it's because the '=$blah' syntax relies on short tags <? ... ?>... and short tags can upset XML parsers... as a result short tags aren't supported by all hosting providers .... so your code could break if ported to another site... Cheers Rich

« previous php.general (#138000) next »