Diff between <?php ?> and <? ?>

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Sharon_22
Forum Newbie
Posts: 2
Joined: Fri Jun 17, 2005 7:39 am

Diff between <?php ?> and <? ?>

Post by Sharon_22 »

What is the difference between <?php ?> and <? ?> delimiters ?
Syranide
Forum Contributor
Posts: 281
Joined: Fri May 20, 2005 3:16 pm
Location: Sweden

Post by Syranide »

none, except that <? is only available if enabled in the config, so stay away from it.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

They are called "short tags", so try googling for discussion.

http://us2.php.net/manual/en/language.basic-syntax.php (Page in manual discussing escaping in HTML)
http://www.google.com/search?q=php+short+tags (Google search "php short tags")
Post Reply