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