get html file data to variable in php code example Example: get html file data to variable in php $Vdata = file_get_contents('path/to/YOUR/FILE.php');