ファイル名の最後の 2 文字/数字が PHP の数字かどうかを確認したい。
if (CODE HERE) {
// runs script because last two characters are numbers
}
これはそれを引き立たせるはずです:
http://www.nws.noaa.gov/weather/images/fcicons/hi_shwrs20.jpg
The last two digits are '20'
これはすべきではありません:
http://www.nws.noaa.gov/weather/images/fcicons/skc.jpg
There are no last two digits