Commenting PHP
There are two types of comments in PHP: single-line comments and multi-line comments.
Single-line comments start with two forward slashes (//) and continue until the end of the line. For example:
// This is a single-line commentMulti-line comments start with /* and end with */. Everything in between these two markers is considered a comment. For example:
/* This is a multi-line comment */ You can use comments to explain what your code does or to temporarily disable a section of code. It's a good practice to include comments in your code, especially if you or someone else may need to understand it later. That's it! Now you know how to comment your PHP code.