Friday, June 22, 2012

Comments in PHP

why  we use comments

every php script have alot of code line and we want write description to every code then we use comments

comments features :

  1. you write any think and server will not read it 
  2. will not appear in the browser  
  3. will not make error in script 
how we write comments 

we use // to make a one-line comment 
we use  /* and */ to make a comment block
we use # another way to comments 

<?php
//This is a comment

/*
This is
a comment
block
*/

############this is comments
?>

1 comment:

  1. The topic that your blog deals with demands loads of research.This kind of blog always useful for blog readers. thanks Cake PHP Programmers

    ReplyDelete