Re: Help: arrays in a class

From: Date: Wed, 28 Jan 2004 16:18:32 +0000
Subject: Re: Help: arrays in a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176067@lists.php.net to get a copy of this message
From: <jazzman@exdomain.org> > class clsfTreeNode > { > > //member variables > var $fName; > var $fData; > var $includedFiles; > > //constructor > function clsfTreeNode( $fileName ) > { > $this->$fName = $fileName; > $this->$fData = file_get_contents($this->$fName); > > $this->ParseFile(); You have an extra $ sign in your variables names. $this->fName instead of $this->$fName Not sure if that'll solve all your problems, but it's a start. ---John Holmes...

« previous php.general (#176067) next »