fsync

PHP 8 >= 8.1.0
fsync - Synchronizes changes to the file (including meta-data)
Manual
Code Examples

Example #1 fsync example

PHP Version: