of using this, so maybe I shloud use the for loop step instead of using a foreach with range()?
You should try using it to see how slow it is (a test with a high amount of data), you can also try ordering the data and using a for each and some manual code. The faster way is letting the DB do it, but I have no idea of how it could be done.
ive done this using the collection component in laravels, works just fine
Обсуждают сегодня