PHP program to Get last modified information of a file

bookmark

<?php
$current_file_name = basename($_SERVER['PHP_SELF']);
$file_last_modified = filemtime($current_file_name); 
echo "Last modified " . date("l, dS F, Y, h:ia", $file_last_modified)."\n";
?>

Output:

Last modified Monday, 26th June, 2017, 02:06pm