Re: PHP5: Directory & DirectoryIterator
| From: | Vivian Steller | Date: | Wed, 25 Feb 2004 17:47:34 +0000 |
| Subject: | Re: PHP5: Directory & DirectoryIterator | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178862@lists.php.net to get a copy of this message | ||
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..