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
mind you this is just a function of the class. I *think* it should work. i am just wondering ifPHP Code:public function info($name){
if($this->method = 'get'){
return $this->$name = $_GET[$name];
}
in thePHP Code:$name
accesor will throw it off.PHP Code:$this->
Thanks!
-Colin



Reply With Quote
Bookmarks