What does “

It’s called heredoc. An easy way to define multiline strings which may include single or double quotes without needing to escape them.

See more here, for example.

Often you use heredocs to define large chunks of code. Some editors know about this and can highlight syntax for you there (if you specify language). Look:

strings vs heredocs

Leave a Comment