Ben bir isim alanı içindeki bazı php sınıfları varsa com\test
ve bunu nasıl başka bir php dosyasının içine hepsini almak istiyorum?
use com\test\ClassA
use com\test\ClassB
...
use com\test\* bana sözdizimi hatası verir.
Bu çalışması gerekir:
use com\test;
$a = new \test\ClassA;
$b = new \test\ClassB;
veya
use com\test\ClassA as ClassA;
use com\test\ClassB as ClassB;
$a = new ClassA;
$b = new ClassB;
See the PHP manual on Using namespaces: Aliasing/Impveyating.