Jump to content
php.lv forumi

Lasa no foldera alfabēa secībā


Artenis

Recommended Posts

$a='0';
$folder=dir("galerijas/".$row['mape']."/"); 
while($folderEntry[$a]=$folder->read()){ 
if ($folderEntry[$a]!='.' && $folderEntry[$a]!='..'&& $folderEntry[$a]!='Thumbs.db'&& $folderEntry[$a]!='thumb'){ 
echo $folderEntry[$a].'<br>';
$a++;
}
}

 

Ko te pielikt, ko atņemt, lai nolasītu foldera saturu alfabēiskā secībā!?

Iepriekš paldies.

Link to comment
Share on other sites

×
×
  • Create New...