[Solved] PHP: Array key-value, how to show value by key?


<?php 
$MyArray = array('name1@domain.com' => array('domain.de','domain.org','domain.eu'),'name2@domain.biz' => array('domain.net'));

foreach ($MyArray as $key => $value)
{
    echo $key . ' has '. implode(', ', $value).'<br>';
}
?>

output

name1@domain.com has domain.de, domain.org, domain.eu
name2@domain.biz has domain.net

1

solved PHP: Array key-value, how to show value by key?