F::extension()
Gets the extension of a file
F::extension(string|null $file = null, string|null $extension = null): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$file | string ornull |
null
|
The filename or path |
$extension | string ornull |
null
|
Set an optional extension to overwrite the current one |
Return type
string