首页 > php函数 > PHP touch() 函数实例教程

PHP touch() 函数实例教程

PHP touch() 函数实例教程

定义和用法

touch()函数设置了访问和修改时间的指定文件。 

此函数返回TRUE成功,或FALSE的失败。 

语法

touch(filename,time,atime)

ParameterDescriptionfilenameRequired. Specifies the file to touchtimeOptional. Sets the time. The current system time is set by defaultatimeOptional. Sets the access time. Default is the current system time if no parameters are set, or the same as the time parameter if that parameter is set

提示和说明注意:如果指定的文件不存在,这将是创建。 例如

<?php
touch("test.txt");


本文地址:http://www.phprm.com/function/746b1335bdf2876cd1feb787f03c06be.html

转载随意,但请附上文章地址:-)

标签:none

发表留言