我有一个填充和打印数组的类populateProtectedArr();return$testA;}protectedfunctionpopulateProtectedArr(){$this->myArr[0]='red';$this->myArr[1]='green';$this->myArr[2]='yellow';print_r($this->myArr);}publicfunctionprintArr(){echo"2ndArray";print_r($this->myArr);}}?>我从另一个文件实例化这个类,并尝试在不同的函数中打印数组。PopulateArr();$u-