Date: 11/30/01
- Next message: Darren Gamble: "RE: Re[8]: [PHP] Re: system(), flush() and so on..."
- Previous message: Jim Musil: "RE: [PHP] Strange problem..."
- Next in thread: l0t3k: "[PHP] Re: Don't tell me this isn't possible (object related question)"
- Reply: l0t3k: "[PHP] Re: Don't tell me this isn't possible (object related question)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi,
let's say I have made some objects
$content = new Content();
and in object content a new object is created
$person = new Person("Jeroen");
Person holds a var age
Now I want to do something like this in a normal PHP script
echo $content->getPerson("Jeroen")->getAge();
or since PHP doesn't use private / prublic / etc..
echo $content->getPerson("Jeroen")->age;
the point is , getPerson("Jeroen") returns an object. this object contains
the function getAge() which return the var age
but somehow this constuction isn't possible !!!! ????? Why !!!!
....... or is it but is there a strange syntax ????
kind regards
Jeroen Olthof
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Darren Gamble: "RE: Re[8]: [PHP] Re: system(), flush() and so on..."
- Previous message: Jim Musil: "RE: [PHP] Strange problem..."
- Next in thread: l0t3k: "[PHP] Re: Don't tell me this isn't possible (object related question)"
- Reply: l0t3k: "[PHP] Re: Don't tell me this isn't possible (object related question)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

