Zend_Filter_BaseName
allows you to filter a string which contains the path to a file and it will return the base name of this file.
There are no additional options for Zend_Filter_BaseName
.
A basic example of usage is below:
$filter = new Zend_Filter_BaseName();
print $filter->filter('/vol/tmp/filename');
This will return 'filename'.
$filter = new Zend_Filter_BaseName();
print $filter->filter('/vol/tmp/filename.txt');
This will return 'filename.txt
'.