sitNsmile
03-28-2010, 10:59 PM
Okay trying to display all the variables in one function.
Where I'd like to echo the entire function.
echo $userData->collectUserData();
public function collectUserData(){
$this->getUserIp();
$this->getUserBrowser();
$this->getUserCountry();
$this->getUserReferral();
return $this;
}
and my results (output) just says "Object id #3"
and if I do
echo $userData->getUserIp();
That works, but that's not what I want to do.
Thanks
Where I'd like to echo the entire function.
echo $userData->collectUserData();
public function collectUserData(){
$this->getUserIp();
$this->getUserBrowser();
$this->getUserCountry();
$this->getUserReferral();
return $this;
}
and my results (output) just says "Object id #3"
and if I do
echo $userData->getUserIp();
That works, but that's not what I want to do.
Thanks