Re: Can anyone explain what this does?

From: Date: Sun, 15 Jul 2001 15:22:08 +0000
Subject: Re: Can anyone explain what this does?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57944@lists.php.net to get a copy of this message
On Sun, 15 Jul 2001, Kurt Lieber wrote: > I'm sure this is a simple one, but I've never seen it before: > > $this->file = $file; > > I'm specifically confused about the -> operator and what that does. > > I looked in the online documentation under operators, but didn't find > anything. Ideally, if someone can point me to the location in the > documentation that talks about this so I can get more info, I'd > appreciate it. It is not an operator, it is how you reference objects in php. $this is the object that you are current using, and you are referencing the objects variable $file with $this->file. For more on classes and objects, read here: http://php.net/manual/en/language.oop.php -- patrik wallstrom | f o o d f i g h t tel: +46-8-6188428 | s t o c k h o l m gsm: +46-708405080 | - - - - - - - - -

« previous php.general (#57944) next »