PHP getmxrr() Functie
Voorbeeld
Retourgegevens van e-mailwisselaarrecords (MX-records):
<?php
$domain="w3schools.com";
if(getmxrr($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
Definitie en gebruik
De functie getmxrr() retourneert de MX-records voor de opgegeven internethostnaam.
Syntaxis
getmxrr(host, mxhosts, weight)
Parameterwaarden
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 |
Technische details
Winstwaarde: | TRUE als er records worden gevonden, anders FALSE |
---|---|
PHP-versie: | 4.0+ |
PHP-wijzigingslogboek: | PHP 5.3: Nu beschikbaar op Windows-platforms |
❮ PHP-netwerkreferentie