PHP MySQL Tutorial
Learn PHP and MySQL

Comments: Using PHP Comments

Using PHP Comments

Sort by: Published Date | Most Recent | Most Useful
By: BrianNY Posted on 03-11-2009 1:20 PM

This is a brief but excellent review of PHP commenting.  I have tried several ways of making comments stand out and "separate" from the active code .. In looking at your multi-line example, I think that is where I will go in the future, whether the actual comment is one or more lines .. I can then indent the comment text, having it stand alone.

Thanks.

By: ianwilliam Posted on 08-24-2011 12:18 PM

Comment is a part of your PHP code that will not be translated by the PHP engine. You can use it to write documentation of your PHP script describing what the code should do. A comment can span only for one line or span multiple line.<a href="gedpracticetestsonlines.com/">ged practice test</a> <a href="gedpracticetestsonlines.com/ged-language-arts.htm">ged language arts practice test</a> <a href="gedpracticetestsonlines.com/ged-science.htm">ged science practice test</a> <a href="gedpracticetestsonlines.com/ged-prep-kit.htm">ged study guide</a> <a href="gedpracticetestsonlines.com/ged-social-studies.htm">ged social studies practice test</a>

Powered by Community Server (Non-Commercial Edition), by Telligent Systems