php filemtime() 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 filemtime() functionsyntax

Function: Return the last modification time of the file content.

Syntax: filemtime(filename)

Parameters:

Parameter
Description
filename Required. Specifies the documents to be checked.

Note: If successful, the time will be returned as a Unix timestamp. On failure, returns false.

php filemtime() functionexample

<?php
$file = filemtime("./test.txt");
echo "文件上一次修改的时间为:".$file;
?>

Home

Videos

Q&A