Something like this works:
<?php
//some variables
include('/myfile.php');
myfile.php have some html + php code. Now imagine the content of myfile.php is -for reasons not relevant to this question- inside a php variable. The immediate solution is to use eval('?>'.$myFileInAVar.'<?php;');
instead of include, but the scope change when you use it and mess with some functions I have inside myfile.php.
Is there a way to replicate the behavior of include not using a file but the content of it stored in a variable?