finfo_filefinfo::fileReturn information about a file DescriptionProcedural style
stringfalse finfo_file(
finfo $finfo ,string $filename ,int $flags = FILEINFO_NONE ,resourcenull $context = null ) Object-oriented style public stringfalse finfo::file(string
$filename , int $flags = FILEINFO_NONE , resourcenull $context = null )This function is used to get information about a file. Parameters
Return Values
Returns a textual description of the contents of the
Changelog
Examples
Example #1 A finfo_file example
The above example will output something similar to: text/html image/gif application/vnd.ms-excel See Also
|