On Thu, 20 Nov 2003 21:32:48 +0000, Lol McBride <lollolmc.nospam.com>
You can do what you are talking about (sort of). Remember that PHP>Hi All,
>I've been looking at the php docs and can't find what I'mlooking for
>contained therein so I'm posing this question here. Can you create
>packages in php so that you can have related classes together and call
>them in a packageName.className style like in Java or Python?
>This would obviously allow a multi-tiered file structure for a project and
>allow me to compartmentalise the classes I create into loosely related
>groupings for use when needed.
>Also is there a useable version of unittest for php to use as an aid in
>Thank you for your time and patience. Lol McBride
doesn't have the concept of anything at "application level" though.
An object can contain objects, and you can also make an associative
array of objects (they are very nearly the same thing in PHP4.x).
One way of "faking" application level objects would be to store them
in session variables - PHP will serialise them on the way in so you
will at least need to check how much data you are putting in them.
Have a play with a small script to figure it out - that's how most of
us found our way around it.