PHP stat() Function

PHP stat Function


Define :

 In this tutorial we have to learned about PHP stat() Function.The stat() Function 
inbuilt function in php.This function is used to returns information (statistics) about a file specified by filename. If filename is a symbolic link, information about the file itself is returned, not the symlink.

Syntax

   stat(filename)

Parameter 

Parameter Description
filename Required. Specifies the path to the file

Example : 

 

Output : 

Access time: 1645269640
Modification time: 1645269640
Device number: 3156796686