why does this code block produce $text?
$text = 'This is text';
$text1 = <<<'TEXT'
$text
TEXT;
$text2 = <<<TEXT
$text1
TEXT;
echo "$text2";
The first heredoc(in $text1) is 'TEXT', with single quote, is it the same as the second heredoc(in $text2)?
PS. This question is about heredoc and nowdoc, not single and double quotes. It's not a dupliate