|
PHP5中文手册
finfo_file(PECL fileinfo:0.1-1.0.4) finfo_file — Return information about a file 说明
string finfo_file
( resource $finfo
, string $file_name
[, int $options
[, resource $context
]] )
finfo
This function is used to get information about a file. 参数
返回值Returns a textual description of the contents of the filename argument, or FALSE if an error occurred. 范例
Example#1 A finfo_file() example
<?php 上例的输出类似于:
|