I am trying to achieve something very simple.
I have a footer.php file which I would like to include() into my index.php
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
Currently, I am including the footer into my index.php using the following method:
As you can see, I am repeating "includes/php" twice. I figured that it is easier to assign this file as a variable, so I may use the following code instead:
But I have no idea how to assign a file as a variable. Thanks for any tips.