PHP getmxrr() Funksie
Voorbeeld
Retourbesonderhede van poswisselrekords (MX-rekords):
<?php
$domain="w3schools.com";
if(getmxrr($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definisie en gebruik
Die getmxrr()-funksie gee die MX-rekords vir die gespesifiseerde internetgasheernaam terug.
Sintaksis
getmxrr(host, mxhosts, weight)
Parameterwaardes
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 |
Tegniese besonderhede
Terugkeerwaarde: | WAAR indien enige rekords gevind word, anders ONWAAR |
---|---|
PHP weergawe: | 4,0+ |
PHP Changelog: | PHP 5.3: Nou beskikbaar op Windows-platforms |
❮ PHP-netwerkverwysing