PHP - Can you HELP please?

You have two files, X and Y. How do i get the GET variable that was set when i included the file in Y?
X)
class name {
function first() {
return $_GET['name'];
}
}

Y)
include('X.php?name=Scott');
echo $name->first();
 
Back
Top