hose of us who have been working in PHP for quite some time will be familiar with a few different methods for embedding PHP into a page: short tags, ASP tags, and the standard method that most use today.
001 < % echo ‘hello’; %>
Don’t use the ASP method – it’s disabled in your php.ini file by default, and for good reason. As of PHP 5.3, short tags were largely discouraged, and labelled as a bad practice. The reason for this was because there was no guarantee that the server would have short tags enabled. As a result, most of us generally recommended that all PHP developers stick with the standard form: < ?php echo ‘hello’; ?>.
As of version 5.4, however, this is no longer the case for the echo short tag syntax: < ?=. You are free to use this shorthand syntax without worry