开发者

Question related to print <<<

开发者 https://www.devze.com 2023-03-03 14:20 出处:网络
Can any one explain me what does following statement means? I have found this statement in wordpress plugin \"FLV EMBED\". these statement are:

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

精彩评论

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