sorting results of opendir()

From: Date: Mon, 09 Jul 2001 18:05:46 +0000
Subject: sorting results of opendir()
Groups: php.general 
Request: Send a blank email to php-general+get-56984@lists.php.net to get a copy of this message
Greetings. I need to read the contents of a directory, sort it alphabetically, and display it .... i'm doing find on the reading and displaying, but can someone help me with the sort? $dir = opendir("."); while ($file=readdir($dir)) { if($file!= "." && $file != "..") { echo("$file<br>"); } } thanks, kennm

« previous php.general (#56984) next »