Objective: To learn how we can use same name of the class in PHP using namespace. Generally we cannot use two or more class with the same name. It will give an error: “Cannot redeclare class” as shown below- To handle this, we can use the namespace as shown in the example given below: 1. […]