i describe my question with example:
-index.php file content:
<?php
require_once(funcfile1.php);
include(funcfile2.php);
?>
<div><?php echo $var1; ?></div>
-funcfile1.php content:
<?php
$var1 = 'html codes'.$var2.'htmlcodes'.**[MY QUESTION]**.'other html or php cods'
?>
you see in index file echo $var1 that is in funfile1.php
but now i want add a variable for echo in [MY QUESTION] that this variable need funcfile2.php include
and funcfile2 just include in index.php
what can i do?