Namespace allows us to use the same function or class name in different parts of the same program without causing a name collision.

BY Best Interview Question ON 26 Jan 2019

Example

Namespace MyAPP;
   function output() {
   echo 'IOS!';
}

namespace MyNeWAPP;
   function output(){
   echo 'RSS!';
}

Suggest An Answer