Reply to Re: Can someone explain ($this->varname) to me..

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация