if you use ' as a delimiter you then have to \' out any real single quotes, and $variables do not get changed into their value
if you use " as your delimeter you are allowed to use ' and any $variables you write get made into it's string value, but you still must \" anytime you want a literal "... this is annoying as in php you mostly output html....
however php does have a define-your-own-delimiter syntax in which you can use ' and " and interpolate variables, only thing is you must \$ if you want a literal dollar
$variable = 'normal string';
print <<<XXX
<a href="$variable">'hey there'</a>
XXX;
print <<<SOMETHINGELSE
<font color="red">'$variable'</font>
SOMETHINGELSE;
print <<<ARBITRARYSTRING
\$variable = $variable
ARBITRARYSTRING;
$var = <<<EOS
I am \$var my value is '$value'
EOS;