<?php // Not allowed namespace namespace {} //syntax error, unexpected namespace-relative name "namespace\A", expecting "{" namespace namespace\A {} // namespace may be used, but not in first position // surely, not a good idea namespace A\namespace { const B = 1; } namespace A { echo namespace\namespace\B; } ?>
You have javascript disabled. You will not be able to edit any code.