Wednesday, November 21, 2012

Comments in PHP

Comments are given so that it shouldn’t get displayed in the front-end but the programmer should always knew the idea behind the coding.

Single line comment
<?php
// This is a comment
?>

Multi-line comments
<?php
/* This is a comment block.
This is a comment block.
This is a comment block.*/
?>

No comments:

Post a Comment