Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. $data = [1,2,3,4,5,6,7, 8];
  3.  
  4. echo "<div class='own-countersoul'>";
  5. for($i = 0; $i < count($data); $i += 2) {
  6.  
  7. echo "<div class='item'>";
  8.  
  9. echo "<div class='single_item'>".$data[$i]."</div>";
  10.  
  11. echo "<div class='single_item'>".$data[$i+1]."</div>";
  12.  
  13. echo "</div>";
  14.  
  15. }
  16. echo "</div>";
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement