I want to test some PHP code, but when I write the following code:
<!DOCTYPE html>
<html>
<body>
Sun
<?php
echo "My first PHP script!";
?>
Flower
</body>
</html>
it only displays "Sun" and "Flower". I have XAMPP installed; XAMPP Apache and MySQL are running. Also, the extension is".php". So, do you know how to solve this problem?
Thank you!
(I am new in learning PHP)