Skip to content
Advertisement

Doing a line break after X amount of results in a Foreach statement (PHP)

I’ve got a foreach statement that returns say 25 names

JavaScript

How do I make it so after X amount, lets say 10 names, it does a line break? The full code has avatars in i for example, so after the 10th avatar, the 11th one would start after a line break/

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement