DirectoryIterator::getMTime

(PHP 5, PHP 7) Get last modification time of current DirectoryIterator item public int DirectoryIterator::getMTime ( void ) Get the last modification time of the current DirectoryIterator item, as a Unix timestamp. Returns: The last modification time of the file, as a Unix timestamp. Examples: A DirectoryIterator::getMTime() example

DirectoryIterator::getFilename

(PHP 5, PHP 7) Return file name of current DirectoryIterator item. public string DirectoryIterator::getFilename ( void ) Get the file name of the current DirectoryIterator item. Returns: Returns the file name of the current DirectoryIterator item. Examples: A DirectoryIterator::getFilename() example This example will list

DirectoryIterator::getCTime

(PHP 5, PHP 7) Get inode change time of the current DirectoryIterator item public int DirectoryIterator::getCTime ( void ) Get the inode change time for the current DirectoryIterator item. Returns: Returns the last change time of the file, as a Unix timestamp. Examples: DirectoryIterator::getCTime() example This example di

DirectoryIterator::getExtension

(PHP 5 >= 5.3.6, PHP 7) Gets the file extension public string DirectoryIterator::getExtension ( void ) Retrieves the file extension. Returns: Returns a string containing the file extension, or an empty string if the file has no extension. Notes: This method is only available as of PHP 5.3.6. Another way of getting the extension is to use th

DirectoryIterator::getATime

(PHP 5, PHP 7) Get last access time of the current DirectoryIterator item public int DirectoryIterator::getATime ( void ) Get the last access time of the current DirectoryIterator item. Returns: Returns the time the file was last accessed, as a Unix timestamp. Examples: A DirectoryIterator::getATime() example Displays a li

DirectoryIterator::getBasename

(PHP 5 >= 5.2.2, PHP 7) Get base name of current DirectoryIterator item. public string DirectoryIterator::getBasename ([ string $suffix ] ) Get the base name of the current DirectoryIterator item. Parameters: suffix If the base name ends in suffix, this will be cut. Returns: The base name of the current DirectoryIterator item.

CallbackFilterIterator::__construct

(PHP 5 >= 5.4.0, PHP 7) Create a filtered iterator from another iterator public CallbackFilterIterator::__construct ( Iterator $iterator , callable $callback ) Creates a filtered iterator using the callback to determine which items are accepted or rejected. Parameters: iterator The iterator to be filtered. callback The callback, which should return T

DirectoryIterator::current

(PHP 5, PHP 7) Return the current DirectoryIterator item. public DirectoryIterator DirectoryIterator::current ( void ) Get the current DirectoryIterator item. Returns: The current DirectoryIterator item. Examples: A DirectoryIterator::current() example This example will list the contents of the directory containing the scr

DirectoryIterator::__construct

(PHP 5, PHP 7) Constructs a new directory iterator from a path public DirectoryIterator::__construct ( string $path ) Constructs a new directory iterator from a path. Parameters: path The path of the directory to traverse. Exception: Throws an UnexpectedValueException if the path cannot be opened. Throws a RuntimeException if the path is an empt

CallbackFilterIterator::accept

(PHP 5 >= 5.4.0, PHP 7) Calls the callback with the current value, the current key and the inner iterator as arguments public string CallbackFilterIterator::accept ( void ) This method calls the callback with the current value, current key and the inner iterator. The callback is expected to return TRUE if the current item is to be accepted, or FALSE otherwise. Returns: Returns TRUE to accept