Stanislav Malyshev wrote:
> 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
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 "MyName
Stanislav Malyshev wrote:
> Hi!
>
>> Shows that a namespace name with \ acts very differently from a
>> namespace name without \ in imports, so I don't think it is entirely
>> accurate to say that PHP namespaces don't support sub-namespacing.
>
> I'm afraid I don't understand what do you mean by
Hi!
Shows that a namespace name with \ acts very differently from a
namespace name without \ in imports, so I don't think it is entirely
accurate to say that PHP namespaces don't support sub-namespacing.
I'm afraid I don't understand what do you mean by "sub-namespacing"
besides the trivial f