Namespaces in php

Namespace concept is very old but it introduced in php very lately. In php 5.3, namespace concept was added.

Namespace was came for removing same name class conflict issue because we can’t create same name class multiple.

Every class must be unique name but in some situation we need to same name class so this was big problem but after introducing namespace, this issues was overcome.

We can understand it with some example.