Simple Code of PHP

Rumman Ansari   Software Engineer   2020-02-01   5475 Share
☰ Table of Contents

Table of Content:


Here we write very simple code by using only echo command and PHP file save with .php extension.

Syntax


<!DOCTYPE>
<html>
<body>
     <?php
             echo "<h2>My First PHP Code</h2>";
    ?>
</body>
</html>


Output



My First PHP Code