file_get_contents

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Reads entire file into a string
<?php file_get_contents(    string $filename,    bool $use_include_path = false,    ?resource $context = null,    int $offset = 0,    ?int $length = null): string|false
<?php                 : self::JSON_CONFIGURATION_NAME);



        $contents = file_exists($filePath)

            ? (string) file_get_contents($filePath)

            : '{}';
<?php             return null;

        }



        $serializedContents = file_get_contents($cacheFile);



        if ($serializedContents === false || ! $this->isSerialized($serializedContents)) {

            return null;
<?php     {

        $path = sprintf('%s/%s.stub', self::PRESET_STUBS_DIRECTORY, $preset);



        return array_values(array_filter(array_map('trim', explode("\n", (string) file_get_contents($path)))));

    }