I want to see if the last two characters/digits in a filename are numbers in PHP.
if (CODE HERE) {
// runs script because last two characters are numbers
}
This should set it off:
http://www.nws.noaa.gov/weather/images/fcicons/hi_shwrs20.jpg
The last two digits are '20'
This should not:
http://www.nws.noaa.gov/weather/images/fcicons/skc.jpg
There are no last two digits
This should do the trick.