I have an array like this:
Array ( [count] => 2 [0] => stdClass Object ( [term_id] => 3109 [name] => Alie
foreach ($array as $key => $value) { if (is_object ($value)) echo $value->slug; }
It simply loops through the array $array and if the element is an object (so it doesn't try to parse count), it echoes slug.
$array
count
slug