News Feed
Jobs Feed
Sections




News Archive
Builder.com.au:
How do I...recursively scan directories with PHP's DirectoryIterators?
June 18, 2008 @ 07:55:21

Builder.com.au has a new tutorial posted today talking about the use if Iterators (from PHP's SPL) to recurse down through directories on your local drive.

One of PHP5's most interesting new features is the addition of Iterators, a collection of ready-made interfaces designed to help in navigating and processing hierarchical data structures. These Iterators significantly reduce the amount of code required to process an XML document tree or a file collection.

They give three examples - two basic ones showing a simple use of the DirectoryIterator and RecursiveDirectoryIterator and another slightly more complex one showing how to get information from the recursive iteration as it goes down.

0 comments voice your opinion now!
directoryiterator iterator recursive directory example


blog comments powered by Disqus

Similar Posts

Builder.com.au: How do I...recursively scan directories with PHP's DirectoryIterators?

Mikko Koppanen's Blog: ImagickPixelIterator is not read-only after all...

Luc de Brouwer's Blog: Never having to use $_GET or $_POST again

Matthew Weir O'Phinney's Blog: Login and Authentication with Zend Framework

Yet Another Web Development Blog: A PHP Developer Spends a Week with Python


Community Events











Don't see your event here?
Let us know!


object application zendframework2 development example code tool phpunit opinion community podcast unittest series release functional language testing interview introduction framework

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework