'<?='与'echo'相同吗? [英] Is '<?=' the same as 'echo'?

查看:83
本文介绍了'<?='与'echo'相同吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一些页面,人们可以在页面上打印以下内容:

I've found some page where people print strings on the web page with this:

<?= 'hello world'; ?>

这是打印字符串的较快方法吗?

Is this a faster way to print strings in one row of code or does it work different?

推荐答案

是的。这可以作为回显,但是不建议这样做,并且许多服务器已禁用此可用性。叫做短标签

Yes. This would work as echo, but it IS NOT RECOMMENDED and many servers have got this availability disabled. It's called "short tag"

这篇关于'&lt;?='与'echo'相同吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆