Menu Riverview Church

GETMXRR

Get MX records corresponding to a given Internet host name

SYNTAX

getmxrr ( string $hostname , array &$mxhosts [, array &$weight ] ) : bool

PARAMETERS

hostname

The Internet host name.

mxhosts

A list of the MX records found is placed into the array mxhosts.

weight

If the weight array is given, it will be filled with the weight information gathered.

RETURN

Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.

EXAMPLES

HOSTNAME MXHOSTS

1
Array
(
    [0] => php-smtp4-ip4.php.net
)

WEIGHT

1
Array
(
    [0] => php-smtp4-ip4.php.net
)
Array
(
    [0] => 0
)

PHP