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         $is_tpl_file = substr($data, -strlen($ext)) === $ext && str_contains($data, $ext);

        $location = $this->getRoot() . $data;

        if ($is_tpl_file) {

            $file_data = is_file($location) ? file_get_contents($location) : '';

            return $this->cache($data, $file_data);

        }
<?php         }



        $location = $location . $this->getExtension();

        $file_data = is_file($location) ? file_get_contents($location) : '';

        return $this->cache($data, $file_data);

    }