title: JSON response to single php variable
body: <p>JSON Response is</p>
  
  <pre><code>[{"id":630770,"t2":"India A","t1":"South Africa A"},
  {"id":593454,"t2":"Nottinghamshire","t1":"Kent"},
  {"id":593453,"t2":"Northamptonshire","t1":"Warwickshire"}, 
  {"id":593457,"t2":"Sussex","t1":"Worcestershire"},
  {"id":593451,"t2":"Hampshire","t1":"Derbyshire"},
  {"id":593456,"t2":"Surrey","t1":"Durham"},{"id":593449,"t2":"Essex","t1":"Lancashire"},
  {"id":593455,"t2":"Somerset","t1":"Gloucestershire"},
  {"id":593452,"t2":"Leicestershire","t1":"Middlesex"},
  {"id":593450,"t2":"Glamorgan","t1":"Yorkshire"}]
  </code></pre>
  
  <p>While Using JSON DECODE in php, Array is:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [id] =&gt; 630770
              [t2] =&gt; India A
              [t1] =&gt; South Africa A
          )
  
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 593454
              [t2] =&gt; Nottinghamshire
              [t1] =&gt; Kent
          )
  
      [2] =&gt; stdClass Object
          (
              [id] =&gt; 593453
              [t2] =&gt; Northamptonshire
              [t1] =&gt; Warwickshire
          )
  
      [3] =&gt; stdClass Object
          (
              [id] =&gt; 593457
              [t2] =&gt; Sussex
              [t1] =&gt; Worcestershire
          )
  
      [4] =&gt; stdClass Object
          (
              [id] =&gt; 593451
              [t2] =&gt; Hampshire
              [t1] =&gt; Derbyshire
          )
  
      [5] =&gt; stdClass Object
          (
              [id] =&gt; 593456
              [t2] =&gt; Surrey
              [t1] =&gt; Durham
          )
  
      [6] =&gt; stdClass Object
          (
              [id] =&gt; 593449
              [t2] =&gt; Essex
              [t1] =&gt; Lancashire
          )
  
      [7] =&gt; stdClass Object
          (
              [id] =&gt; 593455
              [t2] =&gt; Somerset
              [t1] =&gt; Gloucestershire
          )
  
      [8] =&gt; stdClass Object
          (
              [id] =&gt; 593452
              [t2] =&gt; Leicestershire
              [t1] =&gt; Middlesex
          )
  
      [9] =&gt; stdClass Object
          (
              [id] =&gt; 593450
              [t2] =&gt; Glamorgan
              [t1] =&gt; Yorkshire
          )
  
  )
  </code></pre>
  
  <p>I want to get Result in singal variable instead of Array as</p>
  
  <pre><code>$var = "ON Going Matches $n : $t1 VS $t2\n";
  </code></pre>
  
  <p>it should return</p>
  
  <pre><code>ON Going Matches
  1: South Africa A VS India A
  2: Kent VS Nottinghamshire
  3: Warwickshire VS Northamptonshire
  4: Worcestershire VS Sussex
  5: Derbyshire VS Hampshire
  6: Durham VS Surrey
  7: Lancashire VS Essex
  8: Gloucestershire VS Somerset
  9: Middlesex VS Leicestershire
  10: Yorkshire VS Glamorgan
  </code></pre>
  
  <p>I am Using FOREACH LOOP it output</p>
  
  <pre><code>ON Going Matches
  1: South Africa A VS India A
  ON Going Matches
  2: Kent VS Nottinghamshire
  ON Going Matches
  3: Warwickshire VS Northamptonshire
  ON Going Matches
  4: Worcestershire VS Sussex
  ON Going Matches
  5: Derbyshire VS Hampshire
  ON Going Matches
  6: Durham VS Surrey
  ON Going Matches
  7: Lancashire VS Essex
  ON Going Matches
  8: Gloucestershire VS Somerset
  ON Going Matches
  9: Middlesex VS Leicestershire
  ON Going Matches
  10: Yorkshire VS Glamorgan
  </code></pre>
  
  <p>How can i get this Please Help me........</p>