Function

filetype

Synopsis

filetype(string): mixed

Area
Runtime\PS\Files\filetypeareas

Description

filetype returns "file", "dir" or "link" for what $filename names, or false when nothing is there; it answers "file" for the exotic types php can name - fifo, block, char, socket - because nothing inside a source filesystem can be one.

Usage

$value = filetype($arguments);
$fn = filetype(...);

See also