So I wonder if it is possible to get a variable from a specific php-file when the variable-name is used in multiple php-file. An example is this:
<header> <title> <?php echo $var1; ?> </title> </header>
$var1 = 'page1'
$var1 = 'page2'
footer.php should have
<a href="">$var1 from page1</a><a href="">$var1 from page2</a>
Ok the example is a bit abstract, but as short as I can make it. I think you get what I am getting at! So it is the in the footer I am after! Got any solutions?
You can, but the variable in your last include will overwrite the variable in your first one:
I suggest using different variable names.