Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9092369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:49:45+00:00 2026-06-16T22:49:45+00:00

For my PHP based assignment, I believe I have to use objects (Including items

  • 0

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.

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?

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T22:49:46+00:00Added an answer on June 16, 2026 at 10:49 pm

    Storing data in memory, as objects, is only a representation of your data from the database — the two are not the same.
    PHP objects in memory are not persistent at all, your MySQL storage is. Having them “in memory” is just for usage “simplicity”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Entity class that looks like this: <?php namespace Entities; /** @Entity
I have a PHP-based site with bookings/appointments stored in a MySQL database. I want
Currently in my PHP-based applications I use a file, for instance services.php and call
I have a PHP based application that I need to work on both a
I've built a PHP based website with MySQL as the back-end, and am planning
I have a PHP-based web app that I'm trying to apply Apache's mod_rewrite to.
I have a PHP based web application which is currently only using one webserver
I am creating a PHP based web application which requires simple authentication to use.
I have a PHP based web page. Using Ajax, I call PHP routines. Is
I want to monitor and profile PHP based system. For profiling I will use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.