array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.getmxrr.php', 1 => 'getmxrr', ), 'up' => array ( 0 => 'ref.network.php', 1 => '网络 函数', ), 'prev' => array ( 0 => 'function.gethostname.php', 1 => 'gethostname', ), 'next' => array ( 0 => 'function.getprotobyname.php', 1 => 'getprotobyname', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/network/functions/getmxrr.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
getmxrr — 获取 Internet 主机名对应的 MX 记录
在 DNS 中搜索 hostname
对应的 MX 记录。
hostname
Internet 主机名。
hosts
找到的 MX 记录列表存放于 hosts
数组。
weights
提供了 weights
数组后,它会用找到的权重信息填充数组。
named(8)