PHP dns_get_mx() Fungsi
Contoh
Detail pengembalian data penukar surat (data MX):
<?php
$domain="w3schools.com";
if(dns_get_mx($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definisi dan Penggunaan
Fungsi dns_get_mx() adalah alias dari fungsi getmxrr() .
Sintaksis
dns_get_mx(host, mxhosts, weight)
Nilai Parameter
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 |
Detail Teknis
Nilai Kembali: | BENAR jika ada catatan yang ditemukan, SALAH jika sebaliknya |
---|---|
Versi PHP: | 5.0+ |
Referensi Jaringan PHP