How can PHP be used to determine the last modification date of a file?

To determine the last modification date of a file using PHP, you can use the `filemtime()` function. This function returns the timestamp when the file was last modified. You can then use the `date()` function to format the timestamp into a human-readable date format.

$filename = 'example.txt';
if (file_exists($filename)) {
    $lastModified = filemtime($filename);
    echo "Last modified date: " . date("Y-m-d H:i:s", $lastModified);
} else {
    echo "File not found!";
}