Re: $this - >

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* R. Van Tassel <jazzsnob@xxxxxxxxxxxxx>:
> ------=_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@xxxxxxxxxx
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux