PHP dns_get_mx() Funzione
Esempio
Dettagli sulla restituzione dei record dello scambio di posta (record MX):
<?php
$domain="w3schools.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definizione e utilizzo
La funzione dns_get_mx() è un alias della funzione getmxrr() .
Sintassi
dns_get_mx(host, mxhosts, weight)
Valori dei parametri
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 |
Dettagli tecnici
Valore di ritorno: | TRUE se vengono trovati record, FALSE in caso contrario |
---|---|
Versione PHP: | 5.0+ |
❮ Riferimento alla rete PHP