Re: [PHP] Classes within classes

2003-06-27 Thread Lars Torben Wilson
On Fri, 2003-06-27 at 03:09, Dave Alger wrote: > Hiya, > > It would be useful for me to be able to use a class within another class and > I don't know if that's permissable in PHP. Hi there! It is indeed possible. However, that's not the problem here. The problem is that class attribute initiali

[PHP] Classes within classes

2003-06-27 Thread Dave Alger
Hiya, It would be useful for me to be able to use a class within another class and I don't know if that's permissable in PHP. Here's an example of what I'm trying to do. Is it just simply not permitted or am I going about it the wrong way? Thanks in advance for any help, Dave Code follows: ==

[PHP] Classes within classes (Should I do this?)

2001-12-04 Thread Cameron Just
Hi, Is this a bad thing to do have a class stored within another class? I would also like to store an array of another class within a class. It seems to work apart from the fact that I can't reference an array of class directly. ie $test_array[0]->get(); This gives an error. Example code. -