Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Your example doesn't really apply to php at all: the scripts runs, fetches stuff from cache/database, spits out a string and then dies. There is no living objects in memory that interact with each other because each php script starts from scratch and dies right after. At best you could fetch posts and comments as objects instead of arrays. Which is pretty much the extent of "OOP" used in PHP in addition to using classes/singletons as glorified namespaces. Commented Apr 19, 2012 at 2:51