php foreach alternative syntax

38

<?php foreach ($collection as $item): ?>
    <p>Do something in HTML with <?php echo $item; ?></p>
<?php endforeach; ?>

Comments

Submit
0 Comments