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

  • SEARCH
  • Home
  • 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 8040489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:54:47+00:00 2026-06-05T03:54:47+00:00

I am Studying PHP, OOP and i have learned a lot, but there is

  • 0

I am Studying PHP, OOP and i have learned a lot, but there is small things who tease me,

There is an image I created for illustration of object creation:Link

if someone could answer a few questions please…

  • I will be happy if some one can correct me if i did something wrong with the image.
  • When i try to echo an object i getting an error that say that the Object
    (i understand that the Object is the memory reference) cannot be converted to a string, if its not a string of the memory location name(example: ‘F70’) can i have an example please for how does memory location looks like.
  • And about the variable containing the reference, i understand that this is a regular variable placed with all the rest of the global variables, i mean that if i create new object and a new variable the first object(variable) contain the reference but it is a regular global variable, same is the other variable:

First Step: i define the object variable…

Second Step: the Object created and it memory location getting inside the variable we wanted…

Third Step: New global variable created with our reference.

What mean that when i call a Object(variable):

First Step: We are going to the memory location where our variable created…

Second Step: The Variable value(reference) referring us to the memory location where the object is…

Third Step: We have access to methods and properties of that object.

I will be happy if some one can help me understand this things, thank you all and have a nice day.

  • 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-05T03:54:48+00:00Added an answer on June 5, 2026 at 3:54 am
    1. To have a string representation of an object you have to implement function __toString()

    2. Regarding internal mechanisms – its a lot lot more complicated than you think. As PHP is a dynamic language – it haas to keep a lot of information for every class, for every class object. Not just memory needed for string variable, but also function mapping, memory management structures, types structures, defaults..
      If you want to get deeper, read this

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

Sidebar

Related Questions

I am studying PHP,OOP and i am at Static, At this php.net/static i didnt
I'm studying Python, after a lot of PHP experience, and it would be handy
I am studying OOP and this is my first study project. I created a
i have been recently studying php and mysql and also is currently developing a
while studying some security things, there was a question that one can guess the
I'm pretty new to WordPress but have spent some 50 odd hours studying up
I am studying PHP and there is polymorphism example at the website i am
I'm studying http://www.php.net/manual/en/function.dns-get-record.php and there seems to be no option to set a custom
I am studying up on PHP and DDD. It seems to me that the
While studying for the Zend PHP Exam I came across the following contradicting information:

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.