Difference between <?php and <?

后端 未结 7 1189
被撕碎了的回忆
被撕碎了的回忆 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:

    
    

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

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

提交回复
热议问题