开发者

Question related to print <<<

Can any one explain me what does following statement means? I have found this statement in wordpress plugin "FLV EMBED". these statement are:

1.   print <<< JS

2. print <<< XML_HEAD
   $xml_head}
   <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
   xmlns:video="http://www.google.com/schemas/sitemap-video/1.0">
   XML_HEAD;

Can I print these statements wit开发者_运维问答h echo ""; ? thanks


print is also a language construct to output data to the screen, the only difference with echo is that echo accepts multiple parameters

<<< is used to output multiple lines

You can create exactly the same functionality using echo, including using <<<

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜