But for your example, I'm going to be calling useless data, everywhere. Lets say I have this:
function Page() {
$callglobal;
echo 'Hello, How are you!?
You have won!';
mysql_query("UPDATE `users` SET `money` = `money` + 10 WHERE (`userid` = ".$_SESSION['userid']));
$h->endpage();
}
Now, with the "$callglobal" idea, I'm calling $db,$ir,$c,$userid,$h when really I only need $h.
I would suggest a function for this, but then you're typing out just as much as you would be without the function.
I think you used a bad example, but I get what you're trying to say