> 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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to