[ create a new paste ] login | about

Link: http://codepad.org/BUaJJSv9    [ raw code | output | fork ]

PHP, pasted on Nov 23:
1
2
3
4
5
6
7
8
9
10
<?php

$arr = array( 'abcd', 'defg', 'hijk', 'lmno', 'pqrs', 'tuvw', 'xyz1', '2345', '6789', '1011', '1213');

for($i=0;$i<count($arr);$i++) {
        if($i && $i%3 == 0) {
                echo "\n";
        }
        echo $arr[$i].' ';
}


Output:
1
2
3
4
abcd defg hijk 
lmno pqrs tuvw 
xyz1 2345 6789 
1011 1213 


Create a new paste based on this one


Comments: