|
Posted by Rik Wasmus on 09/01/07 03:22
On Fri, 31 Aug 2007 19:52:24 +0200, 4sak3n 0ne <4sak3n0ne@gmail.com> wrote:
> On Aug 31, 10:44 am, stiki <lapto...@gmail.com> wrote:
>> How and what does this mean in php: ($this->varname)
>>
>> I can't seem to find this by searching Google, because the "->" are
>> removed from my search query.
>>
>> Cheers,
>> Igor Terzicwww.stikimedia.com
>
> -> is used when referring to a classes inner workings. $this is a
> special variable used within a class to refer to itself.
To be more precise: it refers to the containing object (instance of a
class). A reference to a class itself would normally be something like
self::$varname.
--
Rik Wasmus
My new ISP's newsserver sucks. Anyone recommend a good one? Paying for
quality is certainly an option.
Navigation:
[Reply to this message]
|