Declaring sub-namespaces
suggest changeTo declare a single namespace with hierarchy use following example:
namespace MyProject\Sub\Level;
const CONNECT_OK = 1;
class Connection { /* ... */ }
function connect() { /* ... */ }
The above example creates:
constant MyProject\Sub\Level\CONNECT_OK
class MyProject\Sub\Level\Connection and
function MyProject\Sub\Level\connect
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents