-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"There are four sets of tags which can be used to denote blocks of PHP code. 
Of these, only two (<?php. . .?> and <script language="php">. . .</script>) 
are always available; the others can be turned on or off from the php.ini 
configuration file. While the short- form tags and ASP-style tags may be 
convenient, they are not as portable as the longer versions. Also, if you 
intend to embed PHP code in XML or XHTML, you will need to use the <?php. . 
.?> form to conform to the XML. "

- -php.net/basic-syntax



On Monday 03 March 2003 03:37 pm, Richard Baskett wrote:
> 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..
>
> Cheers!
>
> Rick
>
> "As I grow to understand life less and less, I learn to live it more and
> more." - Jules Renard

- -- 
Truth, like gold, is to be obtained not by its growth, but by washing away 
from it all that is not gold. 

- -Leo Nikolaevich Tolstoy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+Y/D+/rncFku1MdIRAp5PAJ98htywb5MBJDYTO38PuzOIB/V1QgCfd43i
3sfE6as6sG5gz4nOyqfNBqs=
=6SeN
-----END PGP SIGNATURE-----


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

Reply via email to