PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do we sort an array of names taken from a text file, displaying only unique names?


I guess you mean you would like to sort, removing the duplicates.

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

How can I sort an array keeping the correlation between the index and value?

How do I sort the members of an array by value?

How can I sort a multi-dimensional array?

How do I sort alphanumeric array data correctly?

How can I create an array of the letters of the alphabet?



Custom Search