Question: What takes less resources? PHP classes or functions for a high volume app? I would like to know what takes less resources? PHP classes or PHP functions?

Answer: I can take a reasonable guess not having looked at how it's implemented...\n\nOnce the object exists there will be almost no difference. Remember, a class is simply a collection of functions that have protected access to a group of variables. The only real drawback in OO languages is setting up this access for new objects, but these days it's hardly worth the mention. Inheritance, and the heirarchy lookup may, but it's extremely unlikely, make some slight difference.\n\nAt the end of the day, you need to store in variables what you need to store. Putting them in objects is simply more convenient in so many ways. You pay a tiny bit in performance for that, but you probably use less developer resources (if they count here).
This question from the Yahoo Q&A forum is categorized in the topic: Health