if $var is an object then -> access one of its members much like C++. Unlike C++ there is no private / public differentiation in php, so classes are more like structs.
Regardless if you have a class like:
Class foo
{
var $bar
function ChangeBar() {
$this->bar = "asdf";
}
}
if you then create a foo object in php
$myFoo = new foo;
if you say $myFoo->bar = "qwert"
then the variable $bar inside the class $myFoo is changed, however if you then call
$myFoo->ChangeBar();
echo $myFoo->bar;
it will echo "asdf"
Hope that helps
-Dave