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