I tried:
$test = include \'test.php\';
But that just included the file normally
You can use the function file_get_contents.