PHP Manual
Appendices
Userland Naming Guide
Global Namespace
Rules
Tips
Userland Naming Guide
Rules
Userland Naming Guide
PHP Manual
Global Namespace
Here is an overview of code constructs that go into the global namespace:
functions
classes
interfaces
traits
enumerations
constants (not class constants)
variables defined outside of functions and methods