Php Tutorial – CHAPTER 1: PHP: Start by the basic.
Basic example:
Basically a PHP script often begins using this: “ using “?>”. A block in PHP can be located in different places within
HTML or PHP file. For example I would like to show how you can write a
simple script in PHP.
<html> <body> <?php echo "IT IS MY FIRST SCRIPT IN PHP"; ?> </body> </html>
Comments in a PHP scripting:
Always it is important write some comments in your PHP scripts in order
you can have an organized syntax that can be well understood by
yourself and others. The next example will show you how you can make
comments in PHP. Let’s take the same aforementioned example.
<html> <body> /It is the body of the document <?php echo "THIS IS MY FIRST SCRIPT IN PHP"; ?> </body> </html> /* It is the last tag of this HTML file*/
