Hello,
I have a array with ip addresses $a_ip and one with unique ip addresses $a_unique_ip
Now i want to count the identical ip addresses in $a_ip and put them into a multidimentional array.
I try to do something like that:
foreach($a_unique_ip as $key => $unique_value){
$counter = 0;
foreach($a_ip as $value){
if ($unique_value == $value) {
$counter++;
}
}
//What do i put here????
$a_unique_ip[$key][1] = $counter; //does not work
}
ideas????
Start Free Trial