I have a bunch of classes in my root namespace. I want to use them in another namespace but I can't figure out how to "include" them so that I don't have to add the backslash in the beginning.
class A {
public static $a = 1;
}
namespace B {
use \; // apparently invalid
class C {
static function D { return A::$a; } // desired syntax
}
}
\B\C::D(); // expected result is 1
Is this possible?