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 ++):

echo "TEXT"; // Comment

The second one in Unix style:

echo "TEXT"; # Comment

The third multiline:

     /* Comment
        Comment */
     echo "TEXT";
Подписаться на IT Blog (RU) по Email
Subscribe to IT Blog (EN) by Email

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a Reply