File System

A file system is a method or structure used by operating systems to organize, store, and manage files and data on storage devices such as hard drives, solid-state drives, USB drives, and network-attached storage. It provides a logical and efficient way to store and retrieve data on these storage media.

<?php

    file_put_contents('file.txt', 'some text.');

?>

Documentation

See also https://www.php.net/manual/en/book.filesystem.php

Related : File, Dir,

Related packages : league/flysystem, symfony/filesystem, nette/finder