Whats this?
Posted: Tue Dec 24, 2002 1:31 am
I'm reading through the PHP manual. I'm fairly good at PHP, but i never read te manual i learnt from viewing.
I've come across this in the PHP manual, dont know what it is:
class foo
{
var $foo;
var $bar;
function foo()
{
$this->foo = 'Foo';
$this->bar = array('Bar1', 'Bar2', 'Bar3');
}
}
What does $this-> mean? What does the -> mean?
Thanks.
I've come across this in the PHP manual, dont know what it is:
class foo
{
var $foo;
var $bar;
function foo()
{
$this->foo = 'Foo';
$this->bar = array('Bar1', 'Bar2', 'Bar3');
}
}
What does $this-> mean? What does the -> mean?
Thanks.