View Full Version : php arrays with same value

11-03-2006, 12:56 AM
i have an array, eg

and i need to find out how many different values there are (3 in the above case), and then list them on a page. How would I go about this?
tia for any suggestions!

11-03-2006, 02:18 AM
There is a php function that should do the trick

$unique = array_unique ( $original )

click here (http://uk2.php.net/array_unique)to read more about this function from php.net

I hope that helps..

All the best