touch

PHP 4, PHP 5, PHP 7, PHP 8
touch - Sets access and modification time of file
Manual
Code Examples

Example #1 touch example

PHP Version:

Example #2 touch using the <span class='function-parameter'>mtime</span> parameter

PHP Version: