aximbigfan Posted May 7, 2008 Share Posted May 7, 2008 I have this class: class regSys { //Set connect vars to private private $host; private $pass; private $path; private $SETUP; public function __construct($host, $pass, $path) { $this->host = $host; $this->pass = $pass; $this->path = $path; } //Main RemoteReg function public function remotereg($mode, $cat=null, $key=null, $val=null, $args=null ) { <some code> } } And I want to get these vars inside the "remotereg" function: host pass path How can I do this? Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/104494-getting-vars-inside-a-class/ Share on other sites More sharing options...
aximbigfan Posted May 7, 2008 Author Share Posted May 7, 2008 Huh, thats odd, there appears to be 2 copies of this post. Chris Link to comment https://forums.phpfreaks.com/topic/104494-getting-vars-inside-a-class/#findComment-534945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.