PHP touch() 函数
PHP 教程
· 2019-01-25 16:57:36
定义和用法
touch() 函数设置指定文件的访问和修改时间。
如果成功,该函数返回 TRUE。如果失败,则返回 FALSE。
语法
touch(filename,time,atime)
| 参数 | 描述 |
|---|---|
| filename | 必需。规定要接触的文件。 |
| time | 可选。设置时间。默认设置为当前系统时间。 |
| atime | 可选。设置访问时间。如果参数未设置或设置为与 time 参数相同,则默认设置为当前系统时间。 |
提示和注释
注释:如果指定的文件不存在,则会被创建。
实例
<?php
touch("test.txt");
?>
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Mastering Regular Expressions, Second Edition
Jeffrey E F Friedl / O'Reilly Media / 2002-07-15 / USD 39.95
Regular expressions are an extremely powerful tool for manipulating text and data. They have spread like wildfire in recent years, now offered as standard features in Perl, Java, VB.NET and C# (and an......一起来看看 《Mastering Regular Expressions, Second Edition》 这本书的介绍吧!
RGB HSV 转换
RGB HSV 互转工具
HEX HSV 转换工具
HEX HSV 互换工具