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