I tried:
$test = include \'test.php\';
But that just included the file normally
Try something like:
ob_start(); include('test.php'); $content = ob_get_clean();