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

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 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.



Custom Search