Let's say I have a file, called mypage.php. And within that page is some text and some variables, like so:
mypage.php
This is my page. Apples are $color. Dogs like to $action.
Now, let's say on another page, I want to pull the contents of mypage.php into a string, while parsing the variables:
function includepage()
{
$color = "red";
$action = "bark";
$mystring = WHAT DO I DO HERE?
}
I hope that makes some sort of sense, and you can see what I'm trying to do. Help?