我正在使用这个简单的代码
getmxrr("google.com", $res);
var_dump($res);
在Windows中,我收到null
,
在Ubuntu上,我得到了:
array(5) {
[0] =>
string(23) "alt4.aspmx.l.google.com"
[1] =>
string(18) "aspmx.l.google.com"
[2] =>
string(23) "alt3.aspmx.l.google.com"
[3] =>
string(23) "alt1.aspmx.l.google.com"
[4] =>
string(23) "alt2.aspmx.l.google.com"
}
两者都使用PHP 7.0.x