![]() |
The finfo_file() function is an inbuilt function in PHP that is used for getting information about a file. Syntax:
Parameters: This function accept four parameters that are described below:
Return Value: This function returns the textual description of the content of file, or false if an error occurred Example 1: In the below example, we will print the file information using the finfo_file() function. PHP
Output: application/x-empty; charset=binary Example 2: In the below example, we will print the file information using finfo_file() functions. PHP
Output: text/x-php application/x-empty Reference: https://www.php.net/manual/en/function.finfo-file.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 11 |