DEV Community

Discussion on: Which types of loops are most popular in the programming languages you use?

Collapse
 
buphmin profile image
buphmin

In PHP foreach pretty much exclusively, I pretty much always need to iterate through everything and the performance difference between for i is not enough to matter. In javascript I like to use the for of syntax.