Re: OOP confused

From: Date: Thu, 06 Feb 2003 04:52:48 +0000
Subject: Re: OOP confused
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134540@lists.php.net to get a copy of this message
class one{ var $prev; } class two{ var $head; function two(){ $this->head = new one(); $this->head->prev = NULL; } } Change prev which is in head which is in this to NULL. Justin Garrett "Michael P. Carel" <mikecarel@teamglac.com> wrote in message news:004001c2cd77$6af2e220$8601a8c0@teamglac.com... > Hi to all; > > Just a little question about OOP. I'm just confused with the symbol '->' . > In the article that i've red : > > #this reads "change the value of the variable $head within this class to > black > $this->head="black" > > #how do i read this line > $this->head->prev=NULL > > I'm just confused with this line, i can't translate the class file that i'm > using. > > Thanks in advance. > > > > mike > >

« previous php.general (#134540) next »