Welcome Guest, Not a member yet? Register   Sign In
<? and <?php
#2

[eluser]nelson.wells[/eluser]
When you do the short tags with the equals sign, it will echo what is following it.

<?=$hello;?> is equivalent to <?php echo $hello; ?>

You should prefer the second option. It's a little more typing, but php short tags are deprecated and less portable.


Messages In This Thread
<? and <?php - by El Forum - 03-21-2010, 10:51 AM
<? and <?php - by El Forum - 03-21-2010, 01:36 PM
<? and <?php - by El Forum - 03-21-2010, 03:17 PM
<? and <?php - by El Forum - 03-21-2010, 04:25 PM
<? and <?php - by El Forum - 03-21-2010, 04:58 PM
<? and <?php - by El Forum - 03-21-2010, 06:38 PM
<? and <?php - by El Forum - 03-21-2010, 11:03 PM
<? and <?php - by El Forum - 03-22-2010, 02:05 AM
<? and <?php - by El Forum - 03-22-2010, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB