PHP » GoLang |
login |
register |
about
|
finfo_filefinfo::file(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) finfo_file -- finfo::file — Return 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 |
more
Recently updated
more
Most requested
more
Last requests
|