html in php tag code example
Example 1: php tags
// The opening tag
<?php
echo "Here is the PHP code."; // Everything in between the tags is executed as PHP code.
// The closing tag
?>
Example 2: php inside html tag
<?php
$param = "test";
?>
<a href="http://www.whatever.com/<?php echo $param; ?>">Click Here</a>