Php namespaces

From wikinotes

Namespaces work similar to java packages.
Define the namespace, the actual location of the file could be anywhere.

# /src/package/foo/bar/baz.php

namespace Foo\Bar;

class Baz
{
    // ...
}
# /src/package/foo/bar/zab.php

use Foo\Bar;

new Bar\Baz()