How to Convert HTML code to PHP code
This article is about to convert HTML to PHP by some simple methods without any software. HTML is a simple language and almost the people want to convert it to PHP, so that a normal person cannot understand or edit it. Below are the methods:
It is the simplest method. Simply rename the file and change its extension to “.php”. It will work same.
(Example: Rename “filename.html” to “filename.php”)
It is another method to make HTML complex. Just create a file with extension “.php”.
Open this file with notepad and write:
<?php echo ‘Your HTML Code Here‘; ?>
Enjoy the trick…!