multiple invocation of _getmxrr() against the same
arrays leads unwanted result.
<?php
$hosts = array();
_getmxrr( 'hotmail.com', $hosts, ${''} );
_getmxrr( 'hotmail.com', $hosts, ${''} );
print_r( $hosts );
print_r( $weights );
?>
----------------------------------
Array
(
[0] => mx07.hotmail.com
[1] => mx06.hotmail.com
[2] => mx05.hotmail.com
[3] => mx04.hotmail.com
[4] => mx02.hotmail.com
[5] => mx01.hotmail.com
[6] => mx17.hotmail.com
[7] => mx16.hotmail.com
[8] => mx15.hotmail.com
[9] => mx14.hotmail.com
[10] => mx13.hotmail.com
[11] => mx12.hotmail.com
[12] => mx11.hotmail.com
[13] => mx10.hotmail.com
[14] => mx09.hotmail.com
[15] => mx08.hotmail.com
[16] => mx17.hotmail.com
[17] => mx16.hotmail.com
[18] => mx15.hotmail.com
[19] => mx14.hotmail.com
[20] => mx13.hotmail.com
[21] => mx12.hotmail.com
[22] => mx11.hotmail.com
[23] => mx10.hotmail.com
[24] => mx09.hotmail.com
[25] => mx08.hotmail.com
[26] => mx07.hotmail.com
[27] => mx06.hotmail.com
[28] => mx05.hotmail.com
[29] => mx04.hotmail.com
[30] => mx02.hotmail.com
[31] => mx01.hotmail.com
)
Array
(
[0] => 5
[1] => 5
[2] => 5
[3] => 5
[4] => 5
[5] => 5
[6] => 5
[7] => 5
[8] => 5
[9] => 5
[10] => 5
[11] => 5
[12] => 5
[13] => 5
[14] => 5
[15] => 5
[16] => 5
[17] => 5
[18] => 5
[19] => 5
[20] => 5
[21] => 5
[22] => 5
[23] => 5
[24] => 5
[25] => 5
[26] => 5
[27] => 5
[28] => 5
[29] => 5
[30] => 5
[31] => 5
)
------------------------------
Logged In: YES
user_id=227145
sorry it should be like this.
<?php
$hosts = array();
$weight = array();
_getmxrr( 'hotmail.com', $hosts, $weight );
_getmxrr( 'hotmail.com', $hosts, $weight );
print_r( $hosts );
print_r( $weights );
?>