What is namespaces in PHP?

  • Sharad Jaiswal
  • 22nd Feb, 2018

1 answer(s) :

  •   Reply


    07th Oct, 2019

    Namespace in PHP is an authentic way of encapsulating the elements so that the possibility to reuse the same names can be avoided and name conflicts can be prevented. They can be declared using namespace keyword and it affects a large number of codes including interfaces, elements, abstracts, classes, and functions. It also assists to remove the complications with library and applications for code elements reusability.

Post your Answer :

Valid name is required.

Valid name is required.

Valid email id is required.