पीएचपी dns_get_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 अन्यथा |
---|---|
पीएचपी संस्करण: | 5.0+ |
पीएचपी नेटवर्क संदर्भ