Guest User

Untitled

a guest
Jan 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <?php
  2. $arr = ['a','b','c','d','f','g'];
  3. $a = 0;
  4. foreach ($arr as $value) {
  5. // 3 it's number of items
  6. if($a % 3 == 0){
  7. echo "<br>";
  8. }
  9. echo $value;
  10. $a++;
  11. }
  12.  
  13. ?>
Add Comment
Please, Sign In to add comment