[PHP] removing all duplicate values from an array

2003-10-30 Thread Allowee
x27;two' ); I now want the result to be: array( 'c' => 'zero', 'd' => 'two' ); This way I will be able to do an array_diff and then see all the duplicate entries listed. this is to find dup. ip address for a hosting system, displaying both a

Re: [PHP] removing all duplicate values from an array

2003-10-30 Thread Allowee
original_array[$encountered_elements[$val]]); >} else { >$encountered_elements[$val] = $key; >} Hi, I edited it a bit to match my script and after some tweaks of my own code it started working :) Thanks, Allowee >