12-04-2007, 09:08 PM
|
#6 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Posts: 154
Thanks: 31
|
Quote:
Originally Posted by Swordbeta
Looks nice al though I don't really get what it means.
But can please someone explain me the variable $this?!
And I also don't understand the -> operator.
|
$this refers to the current object instance. The pointer simply allows the connection between object to method or data.
Classes & Objects (PHP v4)
Classes & Objects (PHP v5)
Aside from the PHP manual explanation, there are alot of good object oriented tutorials out there. Take a look at some Java tutorials to get a feel for object design and properties.
|
|
|
|