PHP 5.3 或更高版本是否支持内部类?例子:
class MyClass{
class PrivateClass1{
}
class PrivateClass2{
}
class PrivateClass3{
}
private $obj1;
private $obj2;
private $obj3;
__construct(){
$obj1 = new PrivateClass1();
$obj2 = new PrivateClass2();
$obj3 = new PrivateClass3();
}
}