home

Php Comments Tutorial


Comments are the notes about the code. Comments explain the function performed by a specific code.  Usually when we write many lines of code, its difficult to remember the role of every line in our code. To solve this problem Comments are used. We can write any comment about our code, the main purpose of the comment is to describe the programming code.

Browsers and server will ignore it. If the comment is only one line then double slashes (//) are used to write single line comments. On the other hand for multiple line comments Slash esteric (/*) are used.

<?PHP
//this is my php comment

#this is another way of using php single line comment.

/* This is my php
multiline comment
*/

?>


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web design london by dotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com