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 Available!