List images in a directory with parameters

Hi… have a directory of images. All of them follow a rule such as this:
and for each of these there is a thumb

So for example, 88 has 3 images and a thumb… so my files for that one would be
88-a.jpg, 88-b.jpg, 88-c.jpg, and 88-thumb.jpg

So how do I scan the directory, and list the images of type 88, while also filtering out the thumb?

I think glob() could do it for you.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.