php fileatime() function
Translation results:
英[taɪm] 美[taɪm]
n.Time; time; era; time
vt. Arrange time for...; measure the time of...; adjust (mechanical) Speed; the speed with which a clock or watch is set correctly
vi. In time; Harmony; Beat
adj. Timing; Regular; [American English] Installment (payment)
int.[Sports]
Third person singular: times Plural: times Present participle: timing Past tense: timed
php fileatime() functionsyntax
Function: Returns the last access time of the specified file.
Syntax: fileatime(filename)
Parameters:
Parameter | Description |
filename | Required. Specifies the documents to be checked. |
Description: Returns the time when the file was last accessed. Returns false if an error occurs. The time is returned as a Unix timestamp.
php fileatime() functionexample
<?php $file = fileatime("./test.txt"); echo "文件上次访问的时间为:".$file; ?>