![]() |
The finfo_close() function is an inbuilt function in PHP that is used to close the file instance that is opened by the finfo_open() function. Syntax: finfo_close($finfo): bool
Parameters: This function accepts only one parameter which is described below.
Return Values: The finfo_close() function returns true if this function successfully closes the finfo instance of the file otherwise this function will return “false”. Program 1: The following program demonstrates the finfo_close() function. Make sure the “text.txt” file is available in the given root location. PHP
Output: application/x-empty; charset=binary
Program 2: The following program demonstrates the finfo_close() function. Make sure the given “output.txt” file is available in the given location. PHP
Output: File type of ./output.txt is: text/plain
Reference: https://www.php.net/manual/en/function.finfo-close.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |