Comments in PHP Code

Comments are used to stop the execution of a line or set of lines script. In PHP, we use

  • // to make a single-line comment
  • /* and */ to make a large comment block.

Example:


<html>
<body>

<?php
//This is a single line comment

/*
This is
a comment
block
*/
?>

</body>
</html>

0 comments :

Post a Comment

> Related Posts with Thumbnails
 

Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger