PHP getmxrr()ฟังก์ชัน
ตัวอย่าง
ส่งรายละเอียดของบันทึกการแลกเปลี่ยนจดหมาย (ระเบียน MX):
<?php
$domain="w3schools.com";
if(getmxrr($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
ความหมายและการใช้งาน
ฟังก์ชัน getmxrr() จะคืนค่าระเบียน MX สำหรับชื่อโฮสต์อินเทอร์เน็ตที่ระบุ
ไวยากรณ์
getmxrr(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: | 4.0+ |
บันทึกการเปลี่ยนแปลง PHP: | PHP 5.3: พร้อมใช้งานบนแพลตฟอร์ม Windows แล้ว |
❮ การอ้างอิงเครือข่าย PHP