$array = array('[one] => Array ( [count] => 2 )', '[two] => Array ( [count] => 2 )', '[three] => Array ( [count] => 2 )');
result;
<span class="red"> one <em>(2)</em></span>
<span class="red"> two <em>(2)</em></span>
<span class="red"> three <em>(3)</em></span>
If I've got your question then you might be looking for the following thing
$array = array('one' => Array ( 'count' => 2 ), 'two' => Array ( 'count' => 2 ), 'three' => Array ( 'count' => 2 ));
foreach($array as $key => $value){
echo "<span class='red'> $key <em>({$value['count']})</em></span><br/>";
}
you can use foreach key and value sample:
foreach($array as $key => $value){
echo "<span class='red'> $key <em>({$value['count']})</em></span><br/>";
}