PHP start and end tags
When using PHP, you must tell the PHP engine that it has to parse the PHP. To do so, enclose your PHP code in PHP start and end tags.
There are four types of tags available: standard tags short tags, ASP tags, and script tags.
Tag Style | Start Tag | End Tag |
Standard tags | <?php | ?> |
Short tags | <? | ?> |
ASP tags | <% | %> |
Script tags | <script language="php"> | </script> |
Only standard and script tags are guaranteed to work on any PHP configuration. Short tags and ASP tags must be explicitly enabled in php.ini.
To enable short tags, ensure that the short_open_tag switch is set to on to