Comments in PHP

In PHP, comments can be of three types.

I will give an example of the first (one-line in the style of C ++):

<?php
echo "TEXT"; // Comment
?>

The second one in Unix style:

<?php
echo "TEXT"; # Comment
?>

The third multiline:

<?php
     /* Comment
        Comment
        Comment */
     echo "TEXT";
?>

Leave a comment

Leave a Reply