|
DirectoryIterator::getFilenameReturn file name of current DirectoryIterator item Description
public string DirectoryIterator::getFilename()
Get the file name of the current DirectoryIterator item. ParametersThis function has no parameters. Return ValuesReturns the file name of the current DirectoryIterator item. Examples
Example #1 A DirectoryIterator::getFilename example This example will list the contents of the directory containing the script.
The above example will output something similar to: . .. apple.jpg banana.jpg index.php pear.jpg See Also
|