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