Remove duplicates from array

How can I remove duplicate entries from an array?