title: How to echo value of "id"?
body: <pre><code>{"2b44928ae11fb9384c4cf38708677c48":{
      "id":"115",
      "qty":3,
      "option":"{\"color\":{\"title\":\"Color\",
                            \"value\":\"\"
                           }
                }",
      "price":150,
      "name":"Nightwear",
      "shipping":"5",
      "tax":3,
      "image":"http:\/\/localhost\/plus\/uploads\/product_image\/product_115_1_thumb.jpg",
      "coupon":"",
      "rowid":"2b44928ae11fb9384c4cf38708677c48",
      "subtotal":450
      }
  }
  </code></pre>
  
  <p>Hello everyone,
  This is my array and I want to echo value of only "id" i.e. I want to get value as '115' of key- "id". Please guide me how to make a foreach for this one? I have tried lots of variations but none worked :(</p>
  
  <p>TIA :)</p>
  
  <p>UPDATE-
  I have tried this but did not get any result:</p>
  
  <pre><code>foreach($res as $k=&gt;$t)
  {
    echo $t["product_details"]["id"]; 
  }
  </code></pre>