Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php foreach alternative syntax

<?php foreach ($collection as $item): ?>
    <p>Do something in HTML with <?php echo $item; ?></p>
<?php endforeach; ?>
Source by riptutorial.com #
 
PREVIOUS NEXT
Tagged: #php #foreach #alternative #syntax
ADD COMMENT
Topic
Name
5+4 =