什么是<<< _END? [英] What is <<<_END?

查看:130
本文介绍了什么是<<< _END?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PHP新手,不了解<<<_END的含义.有人可以解释什么时候应该使用它吗?我看过各种示例,它们似乎都在其中嵌入了HTML.但是我可以使用不带<<<_END标记的HTML,那么为什么要使用它们呢?我尝试搜索手册,但一直在寻找数组的end()方法.

I'm new to PHP and don't understand what the point of <<<_END is. Could someone please explain when this should be used? I've looked at various examples and they all seem to have HTML embedded within them. But I can use HTML without the <<<_END tags, so why should I use them? I tried searching the manual, but I keep finding the end() method for arrays.

推荐答案

这是 _END几乎可以是任何东西.您可以放置​​EOFSTUFF.只要您在开始和结束时使用相同的内容即可.

_END can be just about anything. You could put EOF or STUFF. as long as you use the same thing at the start and the finish.

这篇关于什么是&lt;&lt;&lt; _END?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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