> 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]
- [PHP] help with classes Joseph H Blythe
- Re: [PHP] help with classes Joe Conway
- Re: [PHP] help with classes Joseph H Blythe
- Re: [PHP] help with classes Sean Cazzell
- Re: [PHP] help with classes Joseph H Blythe
- Re: [PHP] help with classes Joe Conway
- Re: [PHP] help with classes Joseph H Blythe
- Re: [PHP] help with classes Marcus Rasmussen
- Re: [PHP] help with classes Jesse Swensen
- Re: [PHP] help with classes Ankur Verma