title: how loop through a JSON Array of bitcoin transaction data
body: <p>My code is:</p>
  
  <pre><code>$requesturl='https://blockchain.info/tx-index/1fda663d2584425f192eae045d3809950883ebe50f2222f98ef7d31f414f3f96?format=json';
  $ch=curl_init($requesturl);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $cexecute=curl_exec($ch);
  curl_close($ch);
  $result = json_decode($cexecute,true);
  // to get the first i use 
  echo $result['out'][0]['addr'];
  to get the second I use
  echo $result['out'][0]['addr']; 
  </code></pre>
  
  <p>Now my requirement is to look through the array using for each but its throwing error:</p>
  
  <pre><code>foreach ($result['out'] as $adressee) {
     echo $adressee.'&lt;br&gt;';
  }
  </code></pre>