$ext = pathinfo($filename, PATHINFO_EXTENSION);


get file extension comparison