file_get_contents in php html code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: php file_put_contents
file_put_contents ($filename, $data, $flags = 0, $context = null): int
<?php
file_get_contents("file.txt");
?>
file_put_contents ($filename, $data, $flags = 0, $context = null): int