getmxrr()
getmxrr - Get MX records corresponding to a given Internet host name
Syntax
bool getmxrr (
string $hostname,
array &$mxhosts,
array &$weight)
Arguments
- 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.
Description
Searches DNS for MX records corresponding to hostname.
Version
PHP 4, 5
Return value
Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.