<?php // file2.php
$x = "World!";
include "file1.php";
?>
<?php // file1.php
echo "Hello $x";
?>
PHP Peachpie Snippet