Re: PHP OOP
| From: | Raquel Rice | Date: | Wed, 01 Oct 2003 20:55:10 +0000 |
| Subject: | Re: PHP OOP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164627@lists.php.net to get a copy of this message | ||
On Tue, 30 Sep 2003 19:00:18 -0400
"Geoff Hellstrand" <ubil@hotmail.com> wrote:
> I'm working for the first time with object orientated programming
> in php and I can't figure out how to access elements or methods
> when you place objects inside objects inside other objects.
>
> my origonal idea was to use the following syntax:
> $a->b->c
> but this just returns:
> $a->b . "->c"
>
> Please, need advice on the finer points of OOP in PHP
>
$a->$b->$c->method();
--
Raquel
============================================================
We must learn to live together as brothers or perish together as
fools.
--Martin Luther King, Jr.
--
Raquel
============================================================
We must learn to live together as brothers or perish together as
fools.
--Martin Luther King, Jr.