PHP dns_get_mx() လုပ်ဆောင်ချက်
ဥပမာ
စာတိုက်လဲလှယ်သူ မှတ်တမ်းများ (MX မှတ်တမ်းများ) ၏အသေးစိတ်အချက်အလက်များကို ပြန်လည်ပေးပို့ပါ-
<?php
$domain="w3schools.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
dns_get_mx() လုပ်ဆောင်ချက်သည် getmxrr() လုပ်ဆောင်ချက်၏ နံပတ် တစ်ခုဖြစ်သည်။
အထားအသို
dns_get_mx(host, mxhosts, weight)
ကန့်သတ်တန်ဖိုးများ
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 |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | မှတ်တမ်းများတွေ့ရှိပါက True ၊ မဟုတ်ပါက FALSE |
---|---|
PHP ဗားရှင်း- | 5.0+ |
❮ PHP Network ရည်ညွှန်းချက်