Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > alphabetical filenames with readdir
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 23rd November 18:21
e_curtis
External User
 
Posts: 1
Default alphabetical filenames with readdir



Is there a way to make readdir output filenames alphabetically?

Thanks,

Ed
  Reply With Quote


 


2 23rd November 18:21
e_curtis
External User
 
Posts: 1
Default alphabetical filenames with readdir



Never mind. I figured out how to do it using an array and sort.
  Reply With Quote
3 23rd November 18:21
tedd.sperling
External User
 
Posts: 1
Default alphabetical filenames with readdir


Sure -- put the results in an array and then sort() or natsort() it.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666