title: How to I inject only certain parts of PHP page using PHP
body: <p>I know I can include other files using PHP</p>
  
  <pre><code>&lt;?php include("file.php"); ?&gt;
  </code></pre>
  
  <p>Now my question is how do I inject only certain parts of "file.php"?</p>
  
  <p>Lets say I have some header code and some footer code within file.php. How do I organize file.php with the correct separated section, and how do only include certain sections of the file.php (<code>file.php?footer</code> or something like that?)</p>