How do we sort an array of names taken from a text file, displaying only unique names?
Use the function array_unique(). This will sort and remove the duplicates.
Answered by: Jayesh Wadhwani
www.phptouch.com
Comments on this Question/Answer
How do we sort an array of names taken from a text file, displaying only unique names?By: gopi, 30 Dec 2008 10:58:16
Reply to comments / post your own comment >>>
ASK A QUESTION
More arrays PHP Questions
what is the return value of array_unique()?How do I turn an array into a string?
How can I sort a multi-dimensional array?
How do I add to the beginning of an array and find the number of elements in it?
How can I create an array of numbers easily?
