php短标签

WBOY
Release: 2016-06-23 13:34:06
Original
3785 people have browsed it

= Html::encode($message) ?>    
我将上面那句改成    就报错了
 ?>是短标签,为什么改成这种新式就出错了


回复讨论(解决方案)

php echo Html::encode($message) ?>

= .... ?>
php 5.4 起总是支持这种写法的,不管 short_open_tag 状态如何

理解好语法就好解决了
= Html::encode($message) ?>     PHP新版本支持的输出方式
如果用 那在输出内容前面加个echo 就好了

是不是多了一个等号

你的php还没学好。
另外,还有一种格式 ?>,这种格式新版本已经不建议使用了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template