4.4 End-of-line comments
The comment delimiter "//" can comment out the entire line or part of a line. It is generally not used to comment out multiple lines of text; however, it can be used to comment out multiple lines of code. Here are examples of all three styles:
if ($foo > 1) {
//The second usage.
...
}
else {
return false; // Explain the reason for the return value
}
//if ($bar > 1) {
//
// // The third usage
// ...
//}
//else {
// return false;
//}