2015-09-01 18:45:05 4469次浏览 1条回答 0 悬赏 10 金钱

<?= Html::encode($message) ?>
这种写法比较古老,是一种缩写形式。
我看了下 我的php.ini 配置 short_open_tag = off
但是 竟然在YII 下 正常运行
感觉好奇怪,

你们不感觉奇怪么
求大姐 大哥 解释下。

最佳答案

  • bryson 发布于 2015-09-01 19:34 举报
    Note:
    This directive also affected the shorthand <?= before PHP 5.4.0, which is identical to <? echo. Use of this shortcut required short_open_tag to be on. Since PHP 5.4.0, <?= is always available.
    

    官網寫的~~PHP5.4之後 都是可執行的

    http://php.net/manual/en/ini.core.php

    觉得很赞
    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
ppker
见习主管

ppker 上海

注册时间:2015-08-20
最后登录:2022-09-29
在线时长:14小时18分
  • 粉丝8
  • 金钱145
  • 威望0
  • 积分285

热门问题