Re: help with classes

From: Date: Tue, 13 Feb 2001 04:44:08 +0000
Subject: Re: help with classes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39337@lists.php.net to get a copy of this message
> So how does one correctly assign a variable to a variable inside a class withot doing something > like: > > var $bar = ''; > $this->bar = $foo; > That's how you have to do it. class MyClass { var $bar; // This is the class's constructor sub MyClass () { $this->bar = $foo; } } Regards, Sean

« previous php.general (#39337) next »