In function getExtension() extract and return the file extension from the provided string $filepath. If there is no extension, return an empty string. php test code example
Example: php get file extension from filename
$ext = pathinfo($filename, PATHINFO_EXTENSION);