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