Función PHP dns_get_mx()
Ejemplo
Detalles de devolución de registros de intercambio de correo (registros MX):
<?php
$domain="w3schools.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definición y uso
La función dns_get_mx() es un alias de la función getmxrr() .
Sintaxis
dns_get_mx(host, mxhosts, weight)
Valores paramétricos
Parameter | Description |
---|---|
host | Required. Specifies the host name |
mxhosts | Required. An array that specifies a list of MX records found |
weight | Optional. An array that specifies the weight information gathered |
Detalles técnicos
Valor devuelto: | VERDADERO si se encuentran registros, FALSO en caso contrario |
---|---|
Versión PHP: | 5.0+ |
❮ Referencia de la red PHP