What is the usage of for each loop in website? | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
+ 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?

15th May 2019, 1:44 PM
Aimal Yousufi
Aimal Yousufi - avatar
1 Odpowiedź
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
15th May 2019, 4:44 PM
Israel Debrah
Israel Debrah - avatar