class main
{
private $objTest; function __construct() {
$this->objTest=new CTest();
}
function __destruct ( )
{
echo $this->objTest->a; //为什么出错?
}
function test()
{
echo "a";
}
}
{
private $objTest; function __construct() {
$this->objTest=new CTest();
}
function __destruct ( )
{
echo $this->objTest->a; //为什么出错?
}
function test()
{
echo "a";
}
}
http://www.phpe.net/phpmore/VOL5.pdf