Difference between <?php and <?

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

    The first is a safe open and close tag variation, the second is the so called short-open tag. The second one is not always available, use the first option if it's possible. You could check the availability of short open tags in php.ini, at the short_open_tag.

提交回复
热议问题