php read html file into variable code example
Example 1: php get file contents
<?php
file_get_contents("file.txt");
?>
Example 2: get html file data to variable in php
$Vdata = file_get_contents('path/to/YOUR/FILE.php');
<?php
file_get_contents("file.txt");
?>
$Vdata = file_get_contents('path/to/YOUR/FILE.php');