php fileatime函数用于返回指定文件的上次访问时间,其语法是fileatime(filename),参数filename必需,指规定要检查的文件。
php fileatime函数怎么用?
作用:返回指定文件的上次访问时间。
语法:
fileatime(filename)
参数:
filename 必需。规定要检查的文件。
说明:
返回文件上次被访问的时间。如果出错则返回 false。时间以 unix 时间戳的方式返回。
php fileatime()函数 示例
<?php$file = fileatime("./test.txt");echo "文件上次访问的时间为:".$file;?>
以上就是php fileatime函数怎么用的详细内容。
