Как удалить последние два символа имени файла в PHP?Удалить последние две цифры имени файла
http://www.nws.noaa.gov/weather/images/fcicons/tsra50.jpg
# becomes
http://www.nws.noaa.gov/weather/images/fcicons/tsra.jpg
и
http://www.nws.noaa.gov/weather/images/fcicons/hi_shwrs60.jpg
# becomes
http://www.nws.noaa.gov/weather/images/fcicons/hi_shwrs.jpg
Расширение всегда будет 3-х символов (4 с периодом).
Возможно, рассказанные же пользователем: http://stackoverflow.com/questions/19738084/find -if-last-two-characters-in-filename-are-numbers –