Ben Ramsey wrote: >> using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice >> methods like: >> > > Where did you see these classes? Is it a PEAR package? I haven't seen > these in the PHP manual. >
You can find them using the following function: function printDeclaredClasses() { $classes = get_declared_classes(); foreach($classes as $class) { print("\n<b>" . $class . "</b>\n"); $methods = get_class_methods($class); foreach($methods as $method) { print("\t" . $method . "\n"); } } } make a printDeclaredClasses(), search for "DirectoryIterator" and you can see available methods for that class.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php