Clear all

Php comment

Posts: 74
Topic starter
Joined: 5 months ago

What is php comment? How to Write Comments in PHP

Topic Tags
1 Reply
Posts: 48
Eminent Member
Joined: 4 months ago

What is php comment?

A PHP comment is a short passage of text that is not executed by the program. There is no other purpose for it except to be read by someone looking at the code. The purpose of comments is to let others get an understanding of the code.

What are comments in PHP and why do we must use them ? | by Decode Web |  Medium

How to write comments in PHP
  • The Syntax "// text" and "/* text */" are usually used to explain the functionality of a PHP block of code
  • Single Line Comments
  • Comments in PHP begin with //
  • Multi-line Comments
  • Related FAQ