$count) {
$percentage = ($count / $total) * 100;
$percentages[$domain] = $percentage;
}
// Affichage des résultats
echo "Liste d'emails :
" . implode(",
", $emails) . "
";
echo "Noms de domaines correspondants : " . implode(", ", $domains) . "
";
foreach ($percentages as $domain => $percentage) {
echo "Pourcentage d'emails proposés par " . $domain . " : " . round($percentage, 2) . "%
";
}