What is Strrchr?
A PHP Function that finds the last occurrence of a character in a string
$ext = strrchr($image_name, '.');