I tried to write this simple code but it’s not working.
This is my code…
<html>
<body>
<?php
$color = "red";
?>
<p>Roses are <?=$color?></p>
</body>
</html>
i saved this code as new.php
it shows in the browser window only “Roses are” text. the value of $color is not printed.
i also saved it as new.html but the result is same.
what is the problem? what have i done wrong ?
Try
or