Sets the access and modification times of a file.
Description
Note: If $file doesn’t exist, it will be created.
Parameters
$file
stringrequired- Path to file.
$time
intoptional- Modified time to set for file.
Default 0. $atime
intoptional- Access time to set for file.
Default 0.
Source
public function touch( $file, $time = 0, $atime = 0 ) {
return false;
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.