php中代码开始标志 tags

https://www.php.net/manual/en/language.basic-syntax.phptags.php


Three types of tag are available in php
1.normal tag(<?php ?>)
2.short echo tag(<?= ?>)
3.short tag(<? ?>)


<?= ?>
用于输出,等同于 <?php echo xxx ?>可以直接使用

<?= 'print this string' ?>.  等同于  <?php echo 'print this string' ?>.

posted @ 2022-12-02 17:34  katago  阅读(34)  评论(0)    收藏  举报