<?php
$MyArray = array('[email protected]' => array('domain.de','domain.org','domain.eu'),'[email protected]' => array('domain.net'));
foreach ($MyArray as $key => $value)
{
echo $key . ' has '. implode(', ', $value).'<br>';
}
?>
output
[email protected] has domain.de, domain.org, domain.eu
[email protected] has domain.net
1
solved PHP: Array key-value, how to show value by key?