ok i have a script that displays folders it automaticly orders them by name how would i do it so like inbox is first then drafts the sent etc...
$directory=opendir("userfolder/".$usr."");
while( $file = readdir( $directory ) )
{
$file_ar[] = $file;
}
foreach( $file_ar as $file )
{
if( $file == ".." || $file == "." )
{
continue;
}
thats the script all helps is appreciated...