Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Main Methods of the DirectoryIterator Class in PHP 5
Sep 11, 2006 @ 09:32:06

DevShed is starting up another new series today, this time looking at the DirectoryIterator methods out of the Standard PHP Library functionality.

Because this class might be handy to use in projects where handling directories is a must, in this new series I'll be taking a close look at some of its most important methods. We will explore these methods appropriately in conjunction with the corresponding code samples.

They introduce the class, noting why it's handy to use and where's the best place to use it - including an example. They get into a bit more detail, looking at the key() and current() methods as well as using the rewind() method to reset the pointer for the directory.

tagged: directoryiterator class php5 standard library tutorial part1 directoryiterator class php5 standard library tutorial part1

Link: