php: efficiently running functions with one-time loaded classes multiple times in optional files
问题 after reading the responses I have rewritten my question. Let's say I have a theoretical php application that uses objects that do different things. For every page that gets loaded by the application, different scripts will be run. now I made a simple php script that creates a simple object. (this is all made up, I'm just trying to understand this before I code it) $user = new userClass($db); $user->login($credentials); all is fine, and I can even repeat the procedure several times after