دالة 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 |
تفاصيل تقنية
قيمة الإرجاع: | صحيح إذا تم العثور على أي سجلات ، وخلاف ذلك خطأ |
---|---|
إصدار PHP: | 4.0+ |
سجل التغيير في PHP: | PHP 5.3: متوفر الآن على أنظمة تشغيل Windows |
❮ مرجع شبكة PHP