Method: f::filename

Extracts the filename from a file path

Info

Syntax

f::filename($name)

Parameters

Return (string)

Example


$filename = f::filename('/var/www/test.txt');
// filename is test.txt