I have the following array but I am unsure how via a foreach
I can break through the key
so that I can use it in my HTML like this: <?php echo $key['cat_id'];?>
PHP:
<?php foreach($by_category_manufacturer as $key ):?>
<pre><?php var_dump($key)?></pre>
<?php endforeach;?>
Array:
array(6) {
[0]=>
object(stdClass)#92 (5) {
["brand_name"]=>
string(5) "Kioti"
["brand_id"]=>
string(2) "10"
["image_id"]=>
string(2) "23"
["cat_id"]=>
string(1) "3"
["cat_name"]=>
string(9) "Machinery"
}