Current Location: Home> Function Categories> dns_get_mx

dns_get_mx

alias of getmxrr
Name:dns_get_mx
Category:Network
Programming Language:php
One-line Description:alias for getmxrr().

Definition and usage

The dns_get_mx() function is an alias for getmxrr() function.

Example

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>" ;
  }
}
?>

grammar

 dns_get_mx ( host , mxhosts , weight )

Parameter value

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.
Similar Functions
Popular Articles