***
ub****@gmail.com escribió/wrote (27 Jan 2005 11:50:33 -0800):
What are the differences between using these?
<?= and <?php and <?
<? is shorthand for <? echo
The PHP manual explains it better than I could:
"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."
http://es2.php.net/manual/en/language.basic-syntax.php
The <script> alternative exists because of certain issues with some HTML
editors such us Front Page.
--
-+ Álvaro G. Vicario - Burgos, Spain
+-
http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Manda tus dudas al grupo, no a mi buzón
-+ Send your questions to the group, not to my mailbox
--