You’ve said that putting a nested foreach
didn’t work, but I can’t see why it wouldn’t?
Try the following code:
foreach($results as $country => $shorts) {
//Echo the country name
echo $country . "<br />";
foreach( $shorts as $short=>$values ){
//Print all the values for that country
foreach( $values as $key=>$value ){
echo $value . "<br />";
}
}
}
0
solved Format and display array php [closed]