Translations:Developers/Object oriented programming in PHP/Objects/3/en

When creating a new object and assigning it to a variable like  the following happens: Memory for the object is allocated, the constructor method is called to initialize the object and an identifier for this object is stored in the hash table which manages the object and references the memory block. This identifier is assigned as value to the variable $objBar, so that $objBar only contains a reference to the object, and not the actual object data itself.