I have been stuck trying to write PHP code inside some HTML tags I set up.
I have a variable inside a .php
file called $content
, and I have a HTML page code inside this variable in the following way:
$content = <<<HTML some html code in here HTML;
Now, within that HTML tag I wanted to add some PHP code, tried using <?php ..... ?>
, however I wasn't successful with it. Can anyone help?