I am having trouble embedding my php inside my html. Im using the Bootstrap SB Admin template.
Here is my php, which is inside the <body>
<?php
$msg='<p>yo you yo</p>';
echo $msg;
?>
No matter which method I try to insert my php, the page displays it incorrectly with my trailing ?> and other items displayed to the webpage
other methods include using <?...?> as well as placing the php in other sections of the html page.
The only other reason I can think that this would not be working would be if the template is causing the issue.

<?beginning tag. Your files need to have a.phpfile extension and be (pre-)processed into HTML by PHP, either over CLI or (as typically done) over a webserver. PHP 7+ supports the-soption which allows you to run a PHP web server, self-contained in PHP. Read more here: (PHP Server inside PHP)[php.net/manual/en/features.commandline.webserver.php]