DirectoryIterator::getType

(no version information, might be only in CVS)

DirectoryIterator::getType --  Get file type

Description

string DirectoryIterator::getType ( void )

警告

本函数暂无文档,仅有参数列表。


add a note add a note User Contributed Notes
boards at gmail dot com
10-Apr-2006 12:09
Note that this function returns the file type (e.g. "file", "dir", etc.) and not the MIME type.  To do that, you might want to use this:
<?php
for
(
 
$dir = new DirectoryIterator('/some/directory');
 
$dir->valid();
 
$dir->next()
)
{
 
$mime = mime_content_type($dir->getPathname());
}
?>