f::extension($file, $extension = false)
Gets the extension of a file
-
$file (string)
The filename or path -
$extension (string)
Set an optional extension to overwrite the current one -
return (string)
Gets the extension of a file