First Program in PHP
A PHP script can be placed anywhere in the document. it script starts with <?php and ends with ?> .
-
PHP file extension is “.php”.
-
PHP file always saved by .php extension.
-
PHP file normally contains HTML tags, and some PHP scripting code.
Example #1 Our first program in PHP index.php
<html>
<head>
<title> Jawab Adda </title>
</head>
<body>
<?php echo '<p>Jawab Adda</p>'; ?>
</body>
</html>
Note: PHP statements end with a semicolon (;). And PHP function "echo" use for output the text "Jawab Adda" on a web page.