php file comment code example
Example 1: how to make a comment in php
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: comment in php
<?php
echo 'This is a test';
echo 'This is yet another test';
echo 'One Final Test';
?>