PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
$color = "red";
?>

 
<p>Roses are <?=$color?></p>

<p><b>Note:</b> The shortcut syntax only works with the short_open_tag configuration setting enabled.</p>

</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy