What is a namespace?

In this article you will learn what a namespace is in PHP, how to create one and how to use it. So what is a namespace? Here is an intuitive way to think about namespaces: Imagine a filesystem on a computer. If functions and classes are files, then namespaces are directories. You can have tons …

Continue reading