The following code will allow you to iterate through any associated array in PHP. The keys in the array are displayed in a bold font.

foreach ($list as $i => $values)
{
foreach ($values as $key => $value)
echo "$key => $value";
echo "
";
}

Print Friendly, PDF & Email
Translate »