Difference between register, registry and unregister

Magento registry is used for share information anywhere in the magento store. Its work like a Global variable. there are 3 static methods (i) register (ii) registry (iii) unregister of the Mage class.

(i) Mage::register:- It is used to register the value in the registry.
Ex:- Mage::register(‘name’, $value);

(ii) Mage::registry:- (ii) It is used to get the value from the registry.
Ex:- Mage::registry(‘name’);

(iii) Mage::unregister:- (ii) this method is used to remove it from the registry.
Ex:- Mage::unregister(‘name’);