ilya
12-29-2004, 08:22 PM
what are those?im new to php ;)
{$this->table}
{$this->etable}
{$this->table}
{$this->etable}
|
Click to See Complete Forum and Search --> : what is this.. ilya 12-29-2004, 08:22 PM what are those?im new to php ;) {$this->table} {$this->etable} Jona 12-29-2004, 08:49 PM Those are related to object-oriented programming (http://us3.php.net/oop), whereas most of the time procedural code is used in PHP. OOP might seem redundant, but it is very useful for large-scale applications which must reuse the same functions multiple times. redijedi 12-29-2004, 09:51 PM Specifically, $this refers to the current instance of the class which contains the reference. The operands on the right of the -> are properties or methods of the class $this. This code is using properties of its instance. If you had $otherObject->otherProp it would refer to the instance property of the class $otherObject. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |