[snip] But then it will go and do something like this: Array ( [0] => 172.170.69.74 [1] => 172.141.183.231 [2] => 172.137.79.102 [3] => 172.151.144.242 [4] => 172.150.212.129 [5] => 172.158.154.92 ) // correct array
Array ( [172.170.69.74 ] => 0 [172.141.183.231 ] => 1 [172.137.79.102 ] => 2 [172.151.144.242 ] => 3 [172.150.212.129 ] => 4 [172.158.154.92] => 5 ) // correct flipped 172.151.144.242 // correct ip // complete nothingness where $ipData[$ip] should equal 3 1 // wrong $id, should be 4 [/snip] First of all this is probably not a bug. Second, where is the code that tests for the condition? Do the other IP's in the array output their id properly in this same set? This info will help us to solve the problem. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php