file_get_contents

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

Parameters

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

Return Values

Notes

Changelog

Related Functions

pathinfo

File System

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

filepathextension

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

writefilesave