|
DirectoryIterator::__toStringGet file name as a string Description
public string DirectoryIterator::__toString()
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::__toString 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 |