Hi;
I have a class called weather and onf of its member functions contains code like this;
case "realtemp":
$this->$realtemp = $data;
break;
the problem i am having is that $data doesn't appear to get stores.
if i did this;
$this->$realtemp = $data;
$echo $data;
it will print the data onto the screen;
however if i try this it won't print anything.
$this->$realtemp = $data;
echo $this->realtemp;
I am having the same problem even outside the class.
Coud anybody shed some light?
Thanks,
Anand