Assuming this structure holds, you can fetch it with a simple foreach :
<?php
$consortiums = array();
foreach($arr as $arri)
array_push($consortiums,$arri['car']->consortiums);
print_r($consortiums);
?>
I'm iterating the $ arr array (which represents your array), ignoring numeric indexes, and for each accessed the car index, which returns an object which has the consortium member, which in turn returns the final object.
I've replicated your dump as follows:
<?php
$ob = new stdClass();
$ob->consortiums = new stdClass();
$ob->consortiums->i_am_a_consortium = "i am!";
$arr = array(
45 => array("car" => $ob),
92 => array("car" => $ob)
);
print_r($arr);
?>
That produces an output similar to yours (I added only one member to the last object, to realize that they are consortiums):
Array
(
[45] => Array
(
[car] => stdClass Object
(
[consortiums] => stdClass Object
(
[i_am_a_consortium] => i am!
)
)
)
[92] => Array
(
[car] => stdClass Object
(
[consortiums] => stdClass Object
(
[i_am_a_consortium] => i am!
)
)
)
)
And by testing the loop, the output is:
Array
(
[0] => stdClass Object
(
[i_am_a_consortium] => i am!
)
[1] => stdClass Object
(
[i_am_a_consortium] => i am!
)
)
What is an array of consortium.
Your question is somewhat vague, and you can not tell exactly how you want output, but you get an idea.