01.php
<div class='title'>title</div>
02.php
<?php include('01.php');?>
some function:
$a = file_get_contents('02.php');
echo $a;
Result:
<?php include('01.php');?>
Is there a way to refer 02.php
(without including it in the current file) and get this:
<div class='title'>title</div>
This is a simplified example. In reality 02.php
is a large file with 01.php
included somewhere inside.