0

I have this construct found in a PHP script: echo <<<Start; in the script.

What does that mean?

My assumption is that's a kind of redirection, but it's only an assumption and I want to know the real function of this construct.

Steve
  • 20,703
  • 5
  • 41
  • 67
  • 3
    http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Its a way of having multiline strings, called heredoc syntax – Steve Sep 10 '14 at 09:55

1 Answers1

1

It is called heredoc syntax:

echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
max
  • 96,212
  • 14
  • 104
  • 165