Using filemtime() function we can get the time of file modification.
Example
Get the last time the file content was modified:
<?phpecho filemtime("webdictionary.txt");
echo"<br>";
echo"Content last changed: ".date("F d Y H:i:s.", filemtime("webdictionary.txt"));
?>