Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Latest commit

 

History

History
41 lines (23 loc) · 795 Bytes

zend.filter.base-name.rst

File metadata and controls

41 lines (23 loc) · 795 Bytes

BaseName

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.

Supported options for Zend_Filter_BaseName

There are no additional options for Zend_Filter_BaseName.

Basic usage

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'.