Loading…

How to add comments in PHP?

In PHP comments are two types.

  1. Single line comments
  2. Multi line comments

1. Single line comments: It is used comments a single line of code. It disables a line of PHP code. You have to add // or # before the system.

2. Multi line comments: It is used to comment large blocks of code or writing multiple line comments. You have to add /* before and */ after the system.

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question