How can i get two items in a foreach loop in PHP? [duplicate]
问题 This question already has answers here : How to echo two items per one time by using PHP Foreach? (2 answers) How to display two table columns per row in php loop (4 answers) Closed 1 year ago . I have a testimonial carousel. The carousel loop through two item each time. Now i want to get two item each time in a foreach loop. How can i get it? code: <?php foreach ($kiyra_section_meta['testimonials-group'] as $single_testimonial): ?> <div> <div class="row"> <div class="col-md-6"> <div class=