Re: What is a class
| From: | (Hace) | Date: | Sat, 27 Oct 2001 21:49:14 +0000 |
| Subject: | Re: What is a class | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10069@lists.php.net to get a copy of this message | ||
Jack schreef:
>there is a operator :
>$this->edible = $edible;
>What is the "$this -> " stand for?
$this-> refers to the class itself.
So,
class myclass {
function write() {
...some code
} // end function write
function checkfirst() {
... somecode
$this->write();
} // end function checkfirst
} // end class myclass
>Could someone please tell me more???
hth,
Hace
--
http://hace.cjb.net