Require_once to variable
- by swamprunner7
I want to call require_once("test.php") but not display result and save it into variable like this:
//pseudocode
$test = require_once('test.php');
//some operations like $test = preg_replace(…);
echo $test;
Is it possible?