I have a quick question that I just can't seem to figure out even though it should be straightforward.
I have an associative array of the following structure:
[uk] => Array
(
[TW] => 1588
[LY] => 12936
[LW] => 13643
)
I am displaying it in an HTML table as follows.
foreach ($leads as $country) {
echo '<tr><td>' . $country . '</td><td>' . $country['TW'] . '</td><td>' . $country['LY'] . '</td><td>' . $country['LW'] . '</td></tr>';
}
but the country comes out as Array so I'm just wondering what I am doing wrong to get the uk part out.
Output
Array 1588 12936 13643