Hey there, i have a quick question to just make sure my idea is correct.

Say i had made a class to receive information (from posts/gets). I want to access the information in an OO way could i do something like this

PHP Code:
public function info($name){
        if(
$this->method 'get'){
            return 
$this->$name $_GET[$name];
        } 
mind you this is just a function of the class. I *think* it should work. i am just wondering if
PHP Code:
$name 
in the
PHP Code:
$this-> 
accesor will throw it off.

Thanks!

-Colin