Returns the extension from a file path.
public static getExtension ( string $path, boolean $forceLowerCase = false ) : string | ||
$path | string | The path string. |
$forceLowerCase | boolean | Forces the extension to be lower-case (requires mbstring extension for correct multi-byte character handling in extension). |
return | string | The extension of the file path (without leading dot). |