Most of my PHP scripts have been short and simple scripts that get the job done quickly without a lot of headaches. Since I do most of my developing in Java, I decided to try the OOP model of PHP. Will PHP keep the object around basically forever like in Java, or does it destroy the object after the script finished executing? I've tried this, created my "controller", or a servlet-like piece of code, then created the actions that are stored by the controller. I'm storing the actions in an array because I can't seem to find a Vector/Hashmap/Hashtable like feature, is there a better way to store the objects with a key? But when I access the script the first time everything works. I create the controller object, which creates all the action objects and stores them in the "semi-hasmap", then store the controller object with session_register. I assume this is sortof like an object storage facility, but haven't found good detailed documentation on it. If anybody could give me some details as to why I can create the object and it works just fine, but cannot resuse the object I would greatly appreciate it.
Thanks