Re: Re: Classes

From: Date: Wed, 09 Apr 2003 14:44:19 +0000
Subject: Re: Re: Classes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-143092@lists.php.net to get a copy of this message
On Wed, 2003-04-09 at 09:35, Remco Brouwer wrote: > In addition, this will result in the same...what do i wrong? > > <?php > > class a { > var $text1; > var $text2; > > function a() { > $this->$text1 = ""; > $this->$text2 = "Hi"; > } replace $this->$text1, etc. with $this->text1 -- Burhan Khalid phplist[at]meidomus[dot]com Please add a reply-to: header in your messages that points to the mailing list address so that all mail is properly archived and viewed.

« previous php.general (#143092) next »