Why is <? used for and which is the difference with <?php

This question already has an answer here:

  • Reference — What does this symbol mean in PHP? 18 answers

  • You can use

    <?=$row['statement'] ?>

    as a convenient shorthand to

    <?php echo $row['statement'] ?>

    this can improve readability.


    Read the manual.

    It will explain everything about tags.

    http://www.php.net/manual/en/language.basic-syntax.phpmode.php

    链接地址: http://www.djcxy.com/p/59164.html

    上一篇: Bootstrap菜单在移动模式下不能正确显示

    下一篇: 为什么是<? 用于和<?php的区别