I have an array; the following
$arr = array(
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
);
and I want to print something like
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
My code only print the first 3
for($m = 0; $m < 9; $m++){
echo "<ul>";
for($i = 0; $i <3; $i++){
echo "<li>";
echo $arr[$i];
echo "</li>";
}
echo "</ul>";
}
Really appreciate it!