php - Iterate an array for HTML -


i have following array unsure how via foreach can break through key can use in html this: <?php echo $key['cat_id'];?>

php:

<?php foreach($by_category_manufacturer $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"   } 

convert php object associative array

convert object associative array, may done recursively


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -