PHP getmxrr() Funzione
Esempio
Dettagli sulla restituzione dei record dello scambio di posta (record MX):
<?php
$domain="w3schools.com";
if(getmxrr($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definizione e utilizzo
La funzione getmxrr() restituisce i record MX per il nome host Internet specificato.
Sintassi
getmxrr(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: | 4.0+ |
Registro delle modifiche PHP: | PHP 5.3: ora disponibile su piattaforme Windows |
❮ Riferimento alla rete PHP