It is easy to read the definition of PHP but what does it imply?
Let us show you a simple example of PHP. It is easy to draft one.
To do so, first you have to create a file and write HTML tags + PHP code and save this file with .php extension.
All PHP code goes between php tag. A syntax of PHP tag is given below:
<?php //your code here ?> |
Example
<!DOCTYPE> <html> <body> <?php echo "<h2>Hi there !</h2>"; ?> </body> </html> |
Output
Hi there ! |