Closed paularolim closed 5 years ago
How can I make a loop in html to display an array?
<?php foreach ($collection as $item): ?> <div><?php echo $item['name']; /* or $item->name() with objects */ ?></div> <?php endforeach ?>
How can I make a loop in html to display an array?