dns_get_mx
alias of getmxrr
The dns_get_mx() function is an alias for getmxrr() function.
Get detailed information about the Mail Exchange Record (MX Record):
<?php
$domain = "gitbox.net" ;
if ( dns_get_mx ( $domain , $mx_details ) ) {
foreach ( $mx_details as $key => $value ) {
echo " $key => $value <br>" ;
}
}
?>
dns_get_mx ( host , mxhosts , weight )
| parameter | describe |
|---|---|
| host | Required. Specify the host name. |
| mxhosts | Required. Array, specifying the list of MX records found. |
| Weight | Optional. Array, specifying the collected weight information. |