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.