<?php
$test_ar = array('a','b','c','d','e');
for($i=1;$i<=10;$i++){
foreach($test_ar as $count){
echo $i.'-'.$count.'<br>';
}
}
so the output will be.
1-a
1-b
1-c
1-d
1-e
2-a
2-b
etc. . .
So how can I make this an output that will generate but using this for loop and foreach?
1-a-b-c-d-e
2-a-b-c-d-e
3-a-b-c-d-e
etc.
?>