Object function reference

touch

A reference entry for touch

Object function · File

touch(number time) ⇒ boolean

Provides the touch operation for this object.

Example

YASS
$file->touch(time())

Notes

This follows the cross-platform behaviour of the Unix touch operation and sets the file modification time.