Lesson # 3 (PHP): Using PHP Comments

The comments in the code will be a major point for a Web Developer to start his PHP Learning Career. We add comments because it facilitate us to look-up the past coding which we have forget. As well as It also give the pretty much nice look to the code. The code comments do not show on the browser. They get skipped or you can say hide! Every Good Professional Web Developer must write code comments. Another advantage of Comments is that we can easily read the our code or someone's.

Here are the different ways to add comments in code...

<?php // A Single Line Comment
?>

<?php 
# Second way to write single line comment
?>

<?php
/*
Multiple Line Comment
This is only 
way to write multiple (dual or more line)
comments
*/
?>

0 comments:

Post a Comment

 

Copyright © The Coding Master Design by O Pregador | Blogger Theme by Blogger Template de luxo | Powered by Blogger