how to coment in php code example
Example 1: php comment
Example 2: comment in php
Comments in PHP can be used for several purposes, a very interesting one being that you can generate API documentation directly from them by using PHPDocumentor (http://www.phpdoc.org/).
Therefor one has to use a JavaDoc-like comment syntax (conforms to the DocBook DTD), example:
<?php
?>
Some basic html-like formatting is supported with this (ie <br> tags) to create something of a layout.
Example 3: comments in php
Example 4: how to create comments in php
Answer: Use the Syntax "// text" (single line) and "/* text */"
(multi-line)