Say the images might be 1, or 2, or all 3 of these 3 files "1.gif", "1.jpg", "1.png".
glob($_SERVER['DOCUMENT_ROOT']."/images/1.gif;1.jpg;1.png")
Say, if I want to go to this folder to get any files with name "1", with gif, jpg, png extension. the above code will do, right?
My next question is how can I sort the result array by the extension, gif, jpg, png?