file_put_contents

Writes data to a file. This is the preferred way to write data to a file as it handles opening, writing, and closing automatically.

Parameters

main.php
PHP 8.4 | UTF-8
Ready
Line: 1, Column: 1

Return Values

Notes

Changelog

Related Functions

Reads entire file into a string. This is the preferred way to read the contents of a file into a string.

filereadhttp

pathinfo

File System

Returns information about a file path including directory, basename, extension, and filename.

filepathextension