+ 1
What is the usage of for each loop in website?
Websites which are developed with PHP how we can use loops in them practically?
1 Answer
0
It is used to perform the same function as the ones we use in the programming languages. I do c# asp.net core razor pages,sometimes I take a list of items from my database and since I don't know the number of items,I choose to use foreach loop