title: How should I call this array output?
body: <p>I want to call this array output:</p>
  
  <pre><code>[{"title":["OFFER 1, INCENT, US"],"link":["http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&amp;offer_id=1930&amp;aff_sub=MYID"]}][{"title":["OFFER 2, Free, INCENT, US"],"link":["http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&amp;offer_id=2081&amp;aff_sub=MYID"]}][{"title":["OFFER 3, Free, INCENT, US, 113M"],"link":["http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&amp;offer_id=2993&amp;aff_sub=MYID"]}][{"title":["OFFER 4"],"link":["http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&amp;offer_id=3293&amp;aff_sub=MYID"]}][{"title":["OFFER 5"],"link":["http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&amp;offer_id=3295&amp;aff_sub=MYID"]}]
  </code></pre>
  
  <p>which is result of this code:</p>
  
  <pre><code>foreach($json['offers'] as $offer) {
  
  $Myoffers = array(array("title"=&gt; array($offer['name']), "link"=&gt; array($offer['link'])));
  
  echo json_encode($Myoffers);
  </code></pre>
  
  <p>I actually use this to call title and link via javascript:</p>
  
  <pre><code>&lt;a target="_blank" href="'+t.link[0]+'"&gt;'+t.title[0]+"&lt;/a&gt;
  </code></pre>
  
  <p>but nothing show up!</p>