Welcome Guest, Not a member yet? Register   Sign In
<?=$item ?> or <?php echo $item;?> witch is faster ?
#6

[eluser]InsiteFX[/eluser]
Ok! I stand corrected!

From PHP.NET

The issue: PHP allows several open tags beside "<?php".
Code:
<?
    echo "Hello world";
?>
// Or, even worse.
<?="Hello world"; ?>

// Or worst:
<% echo "Hello world"; %>
&lt;? on its own is reserved for XML declaration
&lt;?= is complete invalid XML
<% is ASP style and sucks

All styles beside the official &lt;?php ... ?&gt; are deprecated.

The solution: Stick to standard tags and convert all your scripts!
Guaranteed to be supported further Represents a valid XML processing instruction
Unique in all PHP documents.

InsiteFX


Messages In This Thread
&lt;?=$item ?&gt; or &lt;?php echo $item;?&gt; witch is faster ? - by El Forum - 12-25-2010, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB