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.
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.
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;