Array
(
[9] => stdClass Object
(
[tid] => 9
[vid] => 3
[name] => Domestic
[description] => Domestic
[weight] => 0
)
[12] => stdClass Object
(
[tid] => 12
[vid] => 3
[name] => Economic
[description] => Economic
[weight] => 1
)
[11] => stdClass Object
(
[tid] => 11
[vid] => 3
[name] => International
[description] =>
[weight] => 2
)
)
假设 print_r($child) 结果如上,我想如何回显所有 tid 和名称,我该怎么办?
foreach($child as $arr){
foreach($arr as $key=>$vaule)
{
...
我不知道如何循环它们。