WorkingNS

WorkingNS

<?php

include("./class1.php");
include("./class2.php");

$obj1 = new Acme\MyClass(); // No leading slash.. could be a problem if you're not in the global namespace
$obj2 = new \Delta\MyClass();

$obj1->TEST();
$obj2->TEST();

?>
Comments are closed.