The most common basic syntax are: For generating a PHP file, the
developer has to create a file name using .php extension. This
file seems like HTML file and saves as a plain text. Writing
comments is a good habit because it directs about what you have
done. You will feel no difficulty while making any change or
modification. A well coded script is always full of balanced
comments which makes the code absolutely perfect. A symbol of
‘//’ or ‘/*’ has been placed to leave the comment. The syntax of
‘//’ is marked for a single line comment and is used at the
beginning of each line while ‘/*’ is used for commenting several
lines and used at the top and bottom of the comment. The
comments surrounded by the comment syntax are not executed while
compiling the programme nor displays on the screen of the end
users. Let’s see the examples: // This line will not execute in
the compiling. // And also not displayed on the screen print
(“Hello Buddy”); These lines will also be ignored. Use this type
of comment symbol If yo