stat

PHP 4, PHP 5, PHP 7, PHP 8
stat - Gives information about a file
Manual
Code Examples

Example #1 stat example

PHP Version:

Example #2 Using stat information together with touch

PHP Version: