Re: [PHP-WIN] how to access class members

2010-05-04 Thread Sascha Meyer
Hi Alex, Alex wrote: > How to access class members? > > I have the following class definition: > as Richard pointed out, you were not pointing at the class member's name but to the visibility of the variable instead; to give you a start, this is how your class should look like (but I would reall

Re: [PHP-WIN] how to access class members

2010-05-04 Thread Ferenc Kovacs
On Tue, May 4, 2010 at 3:02 PM, Alexander Schunk wrote: > Hello, > > i have a question: > > How to access class members? > > I have the following class definition: > > class Mitarbeiter{ > > public $name = 'meier'; > public $alter = '50'; > public $gehalt = '2000'; >

Re: [PHP-WIN] how to access class members

2010-05-04 Thread Richard Quadling
On 4 May 2010 14:02, Alexander Schunk wrote: > Hello, > > i have a question: > > How to access class members? > > I have the following class definition: > > class Mitarbeiter{ > >           public $name = 'meier'; >           public $alter = '50'; >           public $gehalt = '2000'; >           p

[PHP-WIN] how to access class members

2010-05-04 Thread Alexander Schunk
Hello, i have a question: How to access class members? I have the following class definition: class Mitarbeiter{ public $name = 'meier'; public $alter = '50'; public $gehalt = '2000'; public $abteilung = 'programmierung'; function printMe