What is <<<_END?

前端 未结 5 1318
生来不讨喜
生来不讨喜 2021-01-04 08:45

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 exam

5条回答
  •  悲&欢浪女
    2021-01-04 09:04

    Does this help? http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc

    It allows you to echo out a block of text (just the same as with echo "words";), but without using the beginning/ending quotes, and without having to escape contained double quotes. Read the manual link above for more detail.

提交回复
热议问题