I have checked many questions about "if file or files exist", but my issue is that I would love to generalise this part of the code by asking if files (in my case pictures) with specific names exist. For example if I have a car that is BWM I would name this picture BWM_1 and so on for more BWM pics, and for a Volvo car I would do the same, I want the code to check this specific part of the car's model, just not sure how to do it.
I did check php manual and many other sources, I couldn't find anything, I did find something about putting it into an array, but what if more pictures are added then I would need to correct the code which I don't want to do...
Thank you very much and sorry for the long post.