Code: Select all
<?
namespace test;
class testClass {
function go() {
echo "hello world";
}
}
$x='testClass';
$t = new $x();
$t->go();
?>
Fatal error: Class 'testClass' not found in test.php on line 11
If I remove the namespace declaration it works fine...anyone?