Re: $this - >
| From: | Matthew Weier O'Phinney | Date: | Thu, 02 Dec 2004 21:52:57 +0000 |
| Subject: | Re: $this - > | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203393@lists.php.net to get a copy of this message | ||
* R. Van Tassel <jazzsnob@optonline.net>:
> ------=_NextPart_000_0039_01C4D88C.AECDCB00
> Content-Type: text/plain;
> charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> Can someone please point me to the php documentation where it explains
>
> $this - >
>
> What is the symbol "- >" and is $this something only used in classes?
>
> I can't find any information that explains this specifically but see it used
> everywhere.
It's in http://php.net/oop and/or http://php.net/oop5 (php5). $this is a
special variable used within methods of classes to indicate the current
object instance. The '->' notation is used to access object properties
and methods.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org