This is only example to: http://youthcoders.net/artykuly-php/632-jak-pobrac-liste-plikow-z-folderu.html
Array
(
    [0] => 1.jpg
    [1] => 2.jpg
    [2] => 3.jpg
    [3] => 4.jpg
    [4] => 5.jpg
)