Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Does anybody use this? Is it useful? Anybody know of any good resources on it? It seems pretty straight-forward, but I was just wondering what kinds of things (if any) people are doing with it. I am building version three of our File Manager application and I would like for it to be my most geniusly well-written, well-thought out, and well-researched application so far. I want to make sure if I use this, it's recommended by my peers.
$di = new DirectoryIterator('path');
foreach ($di as $file)
echo $file->getFilename(); // or just echo $file;
The $file holds an object that implements various methods to ease development, such is isDot(), isFile(), isDir(), isReadable() ... So neat and simple I haven't looked back. Compare this to the opendir()-style and you'll see why.
I actually ran across this for the first time this morning. Didn't really look into it enough to even know what it was. But I might look a little closer.
Gentoo has a lot of stuff off by default. bcmath, curl and so on that would normally be 'on' with a manual install. Dunno why.. guess who ever made the package decided for bare minimum, which makes sense I guess.
The only part of the SPL I have found myself using a fair amount is Reflection.