[Solved] Echoing an multidimensional array


You can try this –

$products = array(
array ("08:10", "10:30", "13:15"),
array ("GSÖ2B2U", "VSH2B2U", "FOR2B2U"), 
array ("GUS", "GJG", "GRL")
);
$new= array();
for ($i = 0; $i < count($products); $i++) {
   $new[] = array_column($products, $i);
}

foreach($new as $vals) {
   echo implode(' ', $vals) . '<br>';
}

Output

08:10 GSÖ2B2U GUS<br>
10:30 VSH2B2U GJG<br>
13:15 FOR2B2U GRL<br>

6

solved Echoing an multidimensional array