Home | Programming | Php
Commenting your code is extremely important no matter which programming language you are using. Not only so others will be able to understand what you are doing, but so you yourself will be able to figure it out again quickly should you not look at your code for several months. In PHP there are three ways you can comment your code:
<?php // This is a single line comment! ?>
<?php // # This is a single line comment as well! ?>
<?php /* This method is used for commenting larger blocks of text within the code. Everything between the start and end comment symbols will be a comment. This whole paragraph is therefore a comment. */ ?>
Article Source: http://www.writerdatabase.com
www.webdevnotes.com/how-to-comment-your-php-code/
Please Rate this Article
5 out of 54 out of 53 out of 52 out of 51 out of 5
Not yet Rated