顺德公农庄 发表于 2017-4-2 12:01:37

PHP short_open_tag 支持等号简短缩写

  short_open_tag

决定是否允许使用 PHP 代码开始标志的缩写形式(<? ?> )。如果禁用了,必须使用 PHP 代码开始标志的完整形式(<?php ?> )。
注意: 本指令也会影响到缩写形式 <?= ,它和 <? echo 等价。使用此缩写需要 short_open_tag 的值为 On。

如果php不支持等号输入变量,<?=?>方式输出变量无效。应该配置问题,要把 php.ini中 short_open_tag 值改为 On 就可以了。
页: [1]
查看完整版本: PHP short_open_tag 支持等号简短缩写