Method: f::name

Extracts the name from a file path or filename without extension

Info

Syntax

f::name($name, $remove_path=false)

Parameters

Return (string)

Example


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