getfilecontent as a string php code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: turn text file to string php
$fileContent = file_get_contents($url);
<?php
file_get_contents("file.txt");
?>
$fileContent = file_get_contents($url);