The following program extracts the domain-part of a comma-seperated list of email-addresses provided in a string. source data is private and anonymized, this means the local-part of the accounts is *not* published. the domain-part is public anyway, let me just mention a simple whois-query at https://de.wikipedia.org/wiki/Network_Information_Center or https://www.denic.de/
—-
*?php
$li=”myname@domain.com , seconduser@seconddomain.com , lickitallup@ngi.de , john@doe.net , me@thebeach.earth”;
$ar=split(“,”,$li);
while (list ($key, $val) = each ($ar)) {
$ar2=split(“@”,$val);
echo $ar2[1];
echo “,”;
echo “*br /*”;
}
?*