|
Size: | 8816 |
Storage flags: | no_autoload,compress/gzip (31%) |
Given a string containing a path to a file, this function will return the name of the directory.
There are no additional options for Zend\Filter\Dir.
A basic example of usage is below:
1 2 3 | $filter = new Zend\Filter\Dir();
print $filter->filter('/etc/passwd');
|
This returns “/etc”.
1 2 3 | $filter = new Zend\Filter\Dir();
print $filter->filter('C:/Temp/x');
|
This returns “C:/Temp”.
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.