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>
page1.php has $var1 = 'page1'
page2.php has $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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…