When creating any site, HTML code is necessarily used for building blocks and building a site in general.
And often this code is in a PHP file, since it makes no sense to put it into a separate file, and then include it again.
Suppose there is such a PHP file and there is such code in it:
<?php $title='Title'; $content='Content//'; echo <<<HTML <div class='title'>$title</div> <div class='content'>$content</div> HTML; But it can be derived more
<?php $title='Title'; $content='Content//'; ?> <div class='title'><?echo $title; ?></div> <div class='content'><?echo $content; ?></div> Which way is better to use? Probably, the second method should be faster, but how much? Or you can still not think about it and write as convenient?
And what if through echo to output a lot of HTML code?