array_unique

http://www.php.net/manual/en/function.array-unique.php