I am new in learning PHP and even in coding overall. Please see the code below and parse it in your browser
<?php
echo "<h3> Below is an examples of Heredoc Syntax in PHP<h3>";
$foo = <<<XYZ
This is a string using heredoc syntax.
XYZ;
echo $foo;
?>
Whey the string stored in $foo inherits the properties of h3 tag above when parsed in a browser? Should it not return plain text? Help please.