我有以下数组...从此代码生成。阅读关联阵列
$aa = new_Arr();
print_r($aa); //here is the result...
cl_aa Object
(
[data:cl_aa:private] => Array
(
[t_a] => Array
(
[0] => Array
(
[f_c] => LAL
[p_r] => RN
[id] => 1214125
[gender] => m
)
)
[t_b] => Array
(
)
[t_l] => Array
(
[0] => Array
(
[p_lev] => 2
[p_date] =>
[p_r] =>
)
)
[t_r] => Array
(
[0] => Array
(
[I_r] => 19
)
)
)
[db:cl_aa:private] => PDOTester Object
(
)
)
我尝试它读成这样......
foreach ($aa as $key=>$value) {
print_r($key);
echo "<h1>". $value['bb']. "</h1>";
}
,但没有结果,我可以看到...
我怎么看了上面的阵列?请帮助?
如果你的对象是私人的,你不能在没有获得者的情况下从他们的课外访问他们。 –
那我该怎么办? –
让他们公开,例如? – Aquillo