Search Results
DirectoryIterator::getExtension (PHP 5 >= 5.3.6, PHP 7, PHP 8) DirectoryIterator::getExtension — Gets the file extension
- isDot
Examples ¶ Example #1 A DirectoryIterator::isDot () example...
- Key
Return the key for the current DirectoryIterator item
- Rewind
Rewind the DirectoryIterator back to the start
- Valid
DirectoryIterator::valid (PHP 5, PHP 7, PHP 8)...
- Seek
Examples ¶ Example #1 DirectoryIterator::seek () example...
- toString
Examples ¶ Example #1 A DirectoryIterator::__toString ()...
- DirectoryIterator
The DirectoryIterator class Introduction ¶ The...
- isDot
I'm running a PHP script from CLI that user the DirectoryIterator::getExtension() method in PHP. The version of PHP I'm running under is 5.3.5, but I keep getting errors saying Fatal error: Call to undefined method DirectoryIterator::getExtension()
Mar 15, 2026 · DirectoryIterator::getBasename — Get base name of current DirectoryIterator item DirectoryIterator::getExtension — Gets the file extension DirectoryIterator::getFilename — Return file name of current DirectoryIterator item DirectoryIterator::isDot — Determine if current DirectoryIterator item is '.' or '..'
Programmation de sites internet en PHP, Ajax et avec la librairie jQuery. Développement de sites web dynamiques avec Wordpress, PrestaShop ou un CMS maison.
(PHP 5, PHP 7) The DirectoryIterator class Introduction (PHP 5, PHP 7) The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories. Class synopsis
Sep 24, 2025 · Methods of DirectoryIterator Class DirectoryIterator is a class in the Standard PHP Library that provides several useful methods, including: getFilename () → Returns the name of the file or directory. getExtension () → Returns the file extension. isFile () / isDir () → Checks whether the item is a file or a directory.
The DirectoryIterator class Introduction ¶ The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
