Re: Don't tell me this isn't possible (object related question)
| From: | l0t3k | Date: | Fri, 30 Nov 2001 23:35:00 +0000 |
| Subject: | Re: Don't tell me this isn't possible (object related question) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76277@lists.php.net to get a copy of this message | ||
Jeroen,
this will be possible with ZE2 (check out the Zend site for more info)
Jeroen Olthof <j.olthof@millipede.nl> wrote in message
news:20011130231645.99256.qmail@pb1.pair.com...
> 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
>
>
>
>
>
>