Suppose I have a top-level namespace \Outer
and I have another sub-namespace \Outer\Inner
and I have another top-level namespace \Inner
and in a class in \Outer I use Inner like this
use Inner;
then which Inner will be used?
\Outer\Inner // ( sub-namespace )
or the
\Inner // ( top-level namespace )
I am confused because php said that the \ was optional for top-level namespaces?
use Inneranduse \Innerboth are different. First one is sub-namespace of Outer namespace but later one is top-level namespace