Namespace, But Far In The Name

../_images/namespace_but_far.png

Namespaces can be named anything, except namespace. That keyword is used as a prefix, on a name (class, function, constant, etc.) to represent the current namespace, and allow for relative sub-namespaces.

Then, the namespace keyword cannot be used as the first part of a namespace, as it would conflict with the namespace relative part.

But it is possible to use namespace later in the name.

See Also

PHP Error Messages

PHP Features