Prepare for the ZCE exam using our quizzes
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:
<?php$filter = new Zend_Filter_Dir();print $filter->filter('/etc/passwd');
This returns "/etc".
<?php$filter = new Zend_Filter_Dir();print $filter->filter('C:/Temp/x');
This returns "C:/Temp".