Method: f::name
Extracts the name from a file path or filename without extension
Info
Syntax
f::name($name, $remove_path=false)
Parameters
- $file (string) The path or filename
- $remove_path (boolean) remove the path from the name
Return (string)
Example
$name = f::name('/var/www/test.txt');
// name is test