What is the function used to retrieve the last modified date and time of a PHP file?

To retrieve the last modified date and time of a PHP file, you can use the `filemtime()` function in PHP. This function returns the timestamp of when the file was last modified. You can then use the `date()` function to format the timestamp into a readable date and time format.

$filename = 'example.php';
$lastModified = filemtime($filename);
echo "Last modified date and time: " . date("F d Y H:i:s.", $lastModified);