I have the array array ( [0] => array(1,2,3,4,5) [1] => array(6,7,8,9,10))
and I would like to display it like this:
-
Updated to take into account your actual array structure
Your solution is a simple nested foreach.
$tab = array(array(1,2,3,4,5), array(6,7,8,9,10));
echo '';
foreach ($tab as $chunks) {
echo '- ';
foreach($chunks as $chunk) {
echo '' . $chunk . '';
}
echo '
';
}
echo '
';