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
Comments on this Question/AnswerHow 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 Questionshow can you reset an array in PHP
how sorting an array with keys?
OK I've been trying to echo out the arrays "$people and $other people" using the for-each method in alphabetical order. but when i see what this displays it does it in some other order. THIS IS THE CODE PHP Ch8 Lab
How can I check if a value is already in an array?
how do i send the information from one page to another page using post method.