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