Alternative foreach statement

suggest change
<?php

foreach ($collection as $item):
    do_something($item);
endforeach;

?>

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents