My new codes are available below. <?php foreach($items as item) { do something… } ?> Now we will write something new. Check out this foreach snippet. <?php foreach($items as item) { do something… } ?> Tweet