21,892
社区成员
发帖
与我相关
我的任务
分享
include "test/C.php";
$c=new Test\Driver\C();
$c->test();
include "test/C.php";
use Test\Driver;
$c=new Driver\C();
$c->test();
include "test/C.php";
use Test\Driver as p;
$c=new p();
$c->test();
namespace Test\Driver;
include "test/C.php";
$c=new C();
$c->test();
use 是引用命名空间
正确的用法我也不是很清楚include "test/C.php";
use Test\Driver as p;
$c=new p\C();
$c->test();