What's the point in storing objects in memory when you can store them in a databse?
<p>For my PHP based assignment, I believe I have to use objects (Including items like a collection class, collection iterator and so on), as well as a MySQL database. </p>

<p>My question is, why would I need to create items as objects, store them in a database then create them as objects again when pulled out of the database when I can just put and get the items straight into and out of the database and use them for what I need straight away? </p>

<p>Or perhaps better phrased, what would be the benefit, if there is one, of storing objects in PHP memory (Wherever PHP stores things), as well as storing them in a database as opposed to just storing them in a database?</p>
