filetype()
filetype - Gets file type
Syntax
string filetype (
string $filename)
Arguments
- filename - Path to the file.
Description
Returns the type of the given file.
Version
PHP 4, 5
Return value
Returns the type of the file. Possible values are fifo, char, dir, block, link, file, socket and unknown.