I have an array of tags that I\'m pulling from a database, I am exporting the tags out into a tag cloud. I\'m stuck on getting only the first instance of the word. For example: