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
)
)
supposed the print_r($child) result is the above, how i want to echo all the tid and the name, how should i do?
foreach($child as $arr){
foreach($arr as $key=>$vaule)
{
...
i don’t know how to loop out them.
This should print the data out for you.
You may wish to add the appropriate HTML tags to format it.