what is a namespace in php?

Report
Question
734 views

A Namespace in PHP is used to encapsulate the items which are similar to that of abstraction in Object Oriented programming concepts.

Please explain why do you think this question should be reported?

Report Cancel

A Namespace in PHP is used to encapsulate the items which are similar to that of abstraction in Object-Oriented programming concepts. Namespaces are used to establish a relationship among classes, functions, and constants. A Namespace can be defined using the keyword The namespace keyword is reserved in PHP for its internal use to avoid conflict with the user-created identifiers.

PHP

Thread Reply

Leave an comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>