Method: f::extension

Gets the extension of a file

Info

Syntax

f::extension($filename)

Parameters

Return (string)

Example


$extension = f::extension('test.txt');
// extension is txt