Difference between <?php and <?

后端 未结 7 1159
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 07:57

I am new to php and would like to know if there are any differences between these server tags :


and



        
相关标签:
7条回答
  • 2020-11-29 08:42

    The problem with short open tags is that the following:

    <?xml version="1.0" ?>
    

    will cause problems if you're allowed to use short tags (i.e. <? and ?>). <?php is less open to misinterpretation.

    Whether or not you're allowed to use short tags is defined by the ini directive short_open_tag.

    0 讨论(0)
提交回复
热议问题