(PHP 5 >= 5.1.2, PHP 7)
Gets file type
public string SplFileInfo::getType ( void )
Returns the type of the file referenced.
Returns:
A string representing the type of the entry. May be one of file, link, or dir
Exception:
Throws a RuntimeException on error.
Examples:
SplFileInfo::getType() example
<