Re: namespaces docs
| From: | Stanislav Malyshev | Date: | Mon, 17 Nov 2008 22:19:11 +0000 |
| Subject: | Re: namespaces docs | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379709@lists.php.net to get a copy of this message | ||
Hi!
instantiates a class in the foo\bar namespace named buh. In other words, it instantiates class buh from the sub-namespace bar of namespace foo.Why there's "subnamespace bar of namespace foo" and not just "namespace foo\bar"? When such notation is useful?
The important line is "MyNamespace2\j" which resolves the same way as in the C++ example.C++ has nesting, we do not - it's the difference. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com