Definition :
The PHP filemtime() function returns the time when the content of the file was last modified.
Note: The results of this function are cached. Use clearstatcache() function to clear the cache.
filemtime(filename)
Parameter | Description |
---|---|
filename | Required. Specifies the path to the file to check |
Given below example Get the last time "demo.text" file content was modified:
Output : 1642223188
Content last changed: January 15 2022 06:06:28.