The php code can be embedded into html code just as an example given below
The php code can be embedded into html code just as an example given below –
basic.php
<html>
<head>
<title> Basic Example </title>
</head>
<body>
<?php
echo “This is php code embedded into html”;
?>
</body>
</html>
similarly html code can be embedded in php code as follows –
example.php
<?php
Advertisement
echo “<b>”.”using html in php”.”</b>”;
?>
Advertisement
Advertisement