PHP dns_get_mx() İşlev
Örnek
Posta değiştirici kayıtlarının (MX kayıtları) ayrıntılarını iade edin:
<?php
$domain="w3schools.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Tanım ve Kullanım
dns_get_mx() işlevi, getmxrr() işlevinin bir diğer adıdır.
Sözdizimi
dns_get_mx(host, mxhosts, weight)
Parametre Değerleri
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 |
Teknik detaylar
Geri dönüş değeri: | Herhangi bir kayıt bulunursa DOĞRU, aksi takdirde YANLIŞ |
---|---|
PHP Sürümü: | 5.0+ |
❮ PHP Ağ Referansı