i'm brand brand brand new in php and trying to learn some basics. like a good girl, i started with reading the manual - and as soon as i got to strings - i gut stuck ...
the dubmest question is: what is the function of: " ->"
i got to the code sample that has the following:
class foo
{
var $foo;
var $bar;
function foo()
{
$this->foo = 'Foo';
$this->bar = array('Bar1', 'Bar2', 'Bar3');
}
}
$foo = new foo();
$name = 'MyName';
echo <<<EOT
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should print a capital 'A': \x41
EOT;
?>
so i'm guessing that -> assigns the value to the variable, or has a function like "cout" in C++, but i don't understand what "$this->" means??? if i'm guessing right about the funcitionality of "->" than what is "$this"