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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners