This tutorial gives detailed information about how to create and execute a PHP program.
To create PHP program, we need basic knowledge of Hyper Text Markup Language (HTML) to generate static content.
To create and execute a PHP Program,
Creation:
Execution:
The PHP file is the combination of HTML and PHP script, where HTML generates static content and PHP generates dynamic content.
To insert or embed PHP script into html document, we use PHP tag.
Format of PHP tag is
The echo statement is used to print something on screen just like print function C language.
Example:
echo "Hello Welcome !";
echo "Hello ".10*3;
<html>
<head>
<title>First PHP Example</title>
</head>
<body>
<?php
echo "This is My First PHP Example";
?>
</body>
</html>