PHP function getmxrr()
Availability in PHP 4.0
Get MX records corresponding to a given Internet host name
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$hostname |
string |
not | The Internet host name. |
$mxhosts |
array |
not | A list of the MX records found is placed into the array mxhosts. |
$weight |
array |
null |
Return values
bool
true if any records are found; returns false if no records were found or if an error occurred.