Declaring sub-namespaces

suggest change

To 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Namespaces:
*Declaring sub-namespaces

Table Of Contents
19XML
22Namespaces
81PDO
102APCu
108PSR