Thanks for the reply, here's the first example:
class classname
{
var $attribute;
function operation($param)
{
$this->attribute =$param
echo $this->attribute;
}
}
this closely resembles your example and makes sense, but then they used this example (perhaps my confusion is here because the get and set are handled differently?)
class classname
{
var $attribute;
function__get($name)
{
return $this->$name; // why is it $this->$name instead of $this->name ?
}
}
Thanks.