Search Results
Dec 29, 2002 · fileatime (PHP 4, PHP 5, PHP 7, PHP 8) fileatime — Gets last access time of file
Definition and Usage The fileatime () function returns the last access time of the specified file. Note: The result of this function is cached. Use clearstatcache () to clear the cache. Note: The atime of a file changes each time the data of a file are being read. This can decrease the performance if an application accesses a large number of files or directories. Some Unix systems have access ...
Jul 11, 2025 · The fileatime () function in PHP is an inbuilt function which is used to return the last access time of a specified file. The fileatime () function returns the last access time of a file as a Unix Timestamp on success and False on failure. The filename is passed as a parameter to the fileatime () function. The result of the fileatime () function is cached and a function called clearstatcache ...
Return Values Returns the time the file was last accessed, or FALSE on failure. The time is returned as a Unix timestamp.
The PHP Filesystem fileatime () function is used to return the last access time of the specified file. The result of this function has cached. We can use the clearstatcache () function to clear the cache.
The fileatime function returns the last access time of a file in Unix timestamp format. Let's explore its features with examples.
PHP fileatime function tutorial shows how to get file access time in PHP. Learn fileatime with practical examples.
