$dir = opendir ($path);
while (false !== ($file = readdir($dir))) {
if (strpos($file, '.png',1)) {
echo "$file <br />";
}
}
super short code that lists the .png filenames
obviously the $path variable is the path to the directory.
how can i list them instead in abc order cause of got an order that is not abc!