Source: levelup.gitconnected.com

PHP 7.x — P2: Comments
Frequently, it’s based on preference on which comment style you use, but other times it makes sense to use one over the other. Comments allow you to write brief or detailed descriptions explaining what the code that you wrote actually does. You, or someone else, will come back to your code years from now and will try to decipher what it actually means.

If you look at the last comment, it needs to have the closing symbol */ or it will continue to comment out anything afterwards.

It doesn’t matter if the code below makes sense or not to you yet, just know that the for loop is commented out and will not be interpreted by PHP.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners