20 Apr 2013

how to use Code Comments PHP Scripts


Commented lines do not get processed by the browser or PHP. They get skipped over like they do not exist. They are made only for human reading.

Why programmer use code comment ?

1. Remind us what our code sections are doing long after we have created them.
2. In good HTML editors it makes a nice colored divider between code sections.
3. Place author name and script creation date information.
4. Make it easier for other developers and programmers to adapt and work with your code.

 In below example there are different types of comment code .