Articles → PHP → Comments in PHP

Comments in PHP
















Software requirement









Prerequisite knowledge





Types of comments









Single line comments








<html>

<head>
	<title> Hello World in PHP </title>
</head>

<body>
	<?php
        //	This is single line of comment
        # Also single line of comment can be used in this way
        ?>
</body>

</html>



Multiline comments




<html>

<head>
	<title> Hello World in PHP </title>
</head>

<body>
	<?php
        /* This is multiline comment
		and this can be extended to multiple lines */
        ?>
</body>

</html>



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, April 24, 2013

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250