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" <[EMAIL PROTECTED]> wrote in message 004001c2cd77$6af2e220$[EMAIL PROTECTED]">news:004001c2cd77$6af2e220$[EMAIL PROTECTED]... > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php