file_put_contents

PHP 5, PHP 7, PHP 8
file_put_contents - Write data to a file

Example #1 Simple usage example

PHP Version:

Example #2 Using flags

PHP Version:


Example #3 of file_put_contents

PHP Version: