src/Utility/HTTPUtilities.php
public static function getFileExtension($name)
    {
        if (is_array($name)) {
            $name = array_pop($name);
        }
        $extension = static::splitFilename($name)[1];
        if (is_string($extension)) {
            $extension = strtolower($extension);
        }
        return $extension;
    }
public static function getFileExtension($name)
    {
        if (is_array($name)) {
            $name = array_pop($name);
        }
        $extension = static::splitFilename($name)[1];
        if (is_string($extension)) {
            $extension = strtolower($extension);
        }
        return $extension;
    }
public static function getFileExtension ( $ name ) { if ( is_array ( $ name ) ) { $ name = array_pop ( $ name ) ; } $ extension = static :: splitFilename ( $ name ) [ 1 ] ; if ( is_string ( $ extension ) ) { $ extension = strtolower ( $ extension ) ; } return $ extension ; }
Parse the passed filename to get the extension only. If passed an array, uses the last element of the array.

@param string|array $name

@return string
Parse the passed filename to get the extension only . If passed an array uses the last element of the array .