Skip to content

Instantly share code, notes, and snippets.

@azibom
Created May 12, 2020 14:35
Show Gist options
  • Save azibom/609d00225bce754349baf3da14189f22 to your computer and use it in GitHub Desktop.
Save azibom/609d00225bce754349baf3da14189f22 to your computer and use it in GitHub Desktop.
php note

What are PHP Namespaces?

Namespacing does for functions and classes what scope does for variables. It allows you to use the same function or class name in different parts of the same program without causing a name collision.

In simple terms, think of a namespace as a person's surname. If there are two people named "John" you can use their surnames to tell them apart.

link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment